2026-02-20 18:10:59 +09:00

4 lines
65 B
Python

ans = 0
while (n := int(input())) != -1 :
ans += n
print(ans)