Write a program that keeps inputting numbers until the number 0 is entered, and then prints the sum of the numbers.

Example

Input

10
5
300
7111
0

Output

7426