The input of the program receives a data stream — a sequence of integers that ends in zero (zero is not included in the sequence). It is required to find the sum of the elements of this sequence.
Input
The input to the program is numbers, one number per line.
Imprint
Print the answer to the problem.
Examples
# |
Input |
Output |
1 |
1
2
3
0 |
6 |
Запрещенные операторы:list;[