6
0 3 2 5 0 0
3 0 0 1 4 0
2 0 0 2 0 1
5 1 2 0 3 0
0 4 0 3 0 2
0 0 1 0 2 0