e-olymp
Competitions

PP2. Week 5: April 5 - 11

Sum of rows

Two dimensional array of size n * n is given. Find the sum of elements in its rows.

Input

First line contains the size of array n (n100). Each of the next n lines contains n integers.

Output

In the i-th line print the sum of elements in the i-th row of array.

Time limit 1 second
Memory limit 128 MiB
Input example #1
3
4 6 7
8 3 2
5 4 2
Output example #1
17
13
11
Author Mykhailo Medvediev