PROGRAMMING:Box and gold coin
It is known that there are 10 boxes, numbered 1-10, in which there are 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 gold coins respectively. Given an N, then there are n lines, and each line has 2 numbers x, y,
Add y gold coins (y can be negative) to the box with X number. If the number of gold coins in the box is less than 0, the number of gold coins in the box will be set to 0, and the number of gold coins in the box with number 1-10 will be output.
###Input format:
###Output format:
###Input example:
Here is a set of inputs. For example:
```in
four
2 -2
2 2
3 3
3 -10
```
###Output example:
The corresponding output is given here. For example:
```out
0 2 0 3 4 5 6 7 8 9
```
answer:If there is no answer, please comment
Add y gold coins (y can be negative) to the box with X number. If the number of gold coins in the box is less than 0, the number of gold coins in the box will be set to 0, and the number of gold coins in the box with number 1-10 will be output.
###Input format:
###Output format:
###Input example:
Here is a set of inputs. For example:
```in
four
2 -2
2 2
3 3
3 -10
```
###Output example:
The corresponding output is given here. For example:
```out
0 2 0 3 4 5 6 7 8 9
```
answer:If there is no answer, please comment