Once upon a time, there existed a sequence
Input Specification
The first line of input contains the positive integer
Each of the following
It is guaranteed that for any input data set there exists a unique sequence of positive integers
Output Specification
The first and only line of output must contain the required sequence
Sample Input 1
2
0 2
2 0
Sample Output 1
1 1
Sample Input 2
4
0 3 6 7
3 0 5 6
6 5 0 9
7 6 9 0
Sample Output 2
2 1 4 5
Comments
Is 0 a positive integer /s?
no/s