11637: a1000

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:5 Solved:0

Description


某基金会计划募捐资金10000元,有若干人捐款,每输入一个人的捐款数后,计算机输出当时的募捐总和,当某一次输入捐款数后达到或者超过10000元时,即宣告程序结束,输出累加和。

Sample Input Copy

1000
1000
1000
2000
3000
2000


Sample Output Copy

1000
2000
3000
5000
8000
10000