numbers = []
while True:
    num = input()
    if num == '0':
        break
    numbers.append(int(num))
s = sum(numbers)
print('sum =', s)

82ccdfae9ebbad29f1fc4c48e2855f9fea2dd212
<mask token>

<mask token>
while True:
    num = input()
    if num == '0':
        break
    numbers.append(int(num))
<mask token>
print('sum =', s)

numbers = []
while True:
    num = input()
    if num == '0':
        break
    numbers.append(int(num))
s = sum(numbers)
print('sum =', s)
