D.py 119 B

123456
  1. while True:
  2. A = list(map(int, input().strip().split()))
  3. if A[0] == 0:
  4. break
  5. print(sum(A[1:]))