Sum of the sequence#105

Sum of the sequence

1 second
64 megabytes
Very easy (≈850)

The program processes a sequence of integers that ends with the number 0. Your task is to calculate the sum of this sequence, not including the final zero.

Input:

A series of integers, each on a separate line.

Output:

A single integer representing the sum of the sequence.

Examples

Example 1

Loading
Loading