#t104. 小杨的储蓄
小杨的储蓄
Xiaoyang's Piggy Banks
Problem Description
Xiaoyang has piggy banks, numbered from to . Starting from day , Xiaoyang puts money into a piggy bank every day. Specifically, on day he chooses a piggy bank and deposits yuan. After days, he has forgotten how much money is in each piggy bank. Can you help him?
Input Format
The first line contains two integers and , separated by a single space. The second line contains integers, where the -th integer is . Integers on each line are separated by a single space.
Output Format
Output integers separated by single spaces, where the -th integer is the amount of money in the piggy bank numbered ().
Sample Input
Sample Input 1
2 3
0 1 0
Sample Input 2
3 5
0 0 0 2 0
Sample Output
Sample Output 1
4 2
Sample Output 2
11 0 4
Sample Explanation
On day Xiaoyang deposits yuan into bank , on day deposits yuan into bank , and on day deposits yuan into bank . So bank has yuan and bank has yuan, matching the output 4 2.
Constraints
- All inputs are integers