Young jedi Ivan has infiltrated in The Death Star and his task is to destroy it. In order to destroy
The Death Star, he needs an array of non-negative integers
On the paper, a square matrix of the size
The solution doesn't need to be unique, but will always exist.
Input
The first line of input contains the integer
Each of the following
Output
The first and only line of output must contain any array of
Sample Input 1
3
0 1 1
1 0 1
1 1 0
Sample Output 1
1 1 1
Explanation for Sample Output 1
It is clear that one of the arrays that meets the requirements from the
matrix is
Sample Input 2
5
0 0 1 1 1
0 0 2 0 2
1 2 0 1 3
1 0 1 0 1
1 2 3 1 0
Sample Output 2
1 2 3 1 11
Comments
This case seems to break some unintended solutions. Can anyone verify?