1378: 零后数字

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:54 Solved:30

Description

输入若干个整数(不超过$100$个),从第一个数字$0$的位置开始向后求和。

如:
1 2 0 1 0 3,输出4
1 2 3 4,输出0
1 2 3 4 0 2 0 3 0 4,输出9

Input

一行输入若干个整数。

Output

输出从第一个0的位置开始,向后求和。

Sample Input Copy

1 2 3 0 4 5

Sample Output Copy

9

HINT

$0$ ≤ 数值 ≤ $100$

Source/Category