4
0 0 0 0 0
0 0 4 2 -1
0 -1 0 1 -1
0 -1 -1 0 8
0 16 -1 -1 0 