编程题:_October's Saving Plan
There is a six-year-old boy called \_October. He is good at managing money. He will budget the expenses of this month, and always make the actual expenses the same as the budget. \_October can get 300 yuan from his mom every month. His mother suggested that he could deposit 100 yuan to her at any time. So \_October made a saving plan.
At the beginning of each month, after receiving the pocket money given by his mother, if \_October expects that there will be more than 100 yuan or exactly 100 yuan in her hand by the end of this month, he will deposit the whole 100 yuan with her mother and leave the rest in her own hands.
For example, at the beginning of November, there was 83 yuan in \_October 's hand, and his mother gave him 300 yuan. \_October expects to spend 180 yuan in November, so he will save 200 yuan in his mother and leave 183 yuan by himself. By the end of November, \_October will have 3 yuan left.
\_October found that the main risk of the savings plan was that the money stored in his mother could not be withdrawn before the end of the year. It is possible that at the beginning of a month, the money in \_October's hand plus the money given by his mother this month is not enough for the original budget of this month. If this happens, \_October will have to reduce its budget this month.
Now please judge whether this will happen according to the monthly budget of \_October from January to December 2021. If not, calculate how much money he will have by the end of 2021 after his mother returns 20% of his usual savings to him.
### INPUT:
12 lines of data, each line contains a non negative integer less than 350, representing the budget of \_October from November to December respectively.
### OUTPUT:
An integer. If there is insufficient money in a certain month during the implementation of the savings plan, output − X. X indicates the first month of this situation. Otherwise, how much money will there be in \_October hands at the end of 2021.
### SAMPLE INPUT1:
in
290
230
280
200
300
170
340
50
90
80
200
60
### SAMPLE OUTPUT1:
out
-7
### Example Explanation1:
* Month; Money Left
* 1; 10
* 2; 80
* 3; 0
* 4; 0
* 5; 0
* 6; 30
* 7; NOT ENOUGH
* In June he had 30 yuan. In July he got 300 yuan and the total money was 330. But he needed to spend 340 yuan. That was NOT enough. So you output -7.
### SAMPLE INPUT2:
in
230
178
160
79
289
346
78
198
51
234
58
219
### SAMPLE OUTPUT2:
out
1760
答案:若无答案欢迎评论
At the beginning of each month, after receiving the pocket money given by his mother, if \_October expects that there will be more than 100 yuan or exactly 100 yuan in her hand by the end of this month, he will deposit the whole 100 yuan with her mother and leave the rest in her own hands.
For example, at the beginning of November, there was 83 yuan in \_October 's hand, and his mother gave him 300 yuan. \_October expects to spend 180 yuan in November, so he will save 200 yuan in his mother and leave 183 yuan by himself. By the end of November, \_October will have 3 yuan left.
\_October found that the main risk of the savings plan was that the money stored in his mother could not be withdrawn before the end of the year. It is possible that at the beginning of a month, the money in \_October's hand plus the money given by his mother this month is not enough for the original budget of this month. If this happens, \_October will have to reduce its budget this month.
Now please judge whether this will happen according to the monthly budget of \_October from January to December 2021. If not, calculate how much money he will have by the end of 2021 after his mother returns 20% of his usual savings to him.
### INPUT:
12 lines of data, each line contains a non negative integer less than 350, representing the budget of \_October from November to December respectively.
### OUTPUT:
An integer. If there is insufficient money in a certain month during the implementation of the savings plan, output − X. X indicates the first month of this situation. Otherwise, how much money will there be in \_October hands at the end of 2021.
### SAMPLE INPUT1:
in
290
230
280
200
300
170
340
50
90
80
200
60
### SAMPLE OUTPUT1:
out
-7
### Example Explanation1:
* Month; Money Left
* 1; 10
* 2; 80
* 3; 0
* 4; 0
* 5; 0
* 6; 30
* 7; NOT ENOUGH
* In June he had 30 yuan. In July he got 300 yuan and the total money was 330. But he needed to spend 340 yuan. That was NOT enough. So you output -7.
### SAMPLE INPUT2:
in
230
178
160
79
289
346
78
198
51
234
58
219
### SAMPLE OUTPUT2:
out
1760
答案:若无答案欢迎评论