5
0 1 3 1 4
1 0 4 5 2
3 4 0 8 4
1 5 8 0 3
4 2 4 3 0