C.py 113 B

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