6
0 1 2 8 4 5 5 0
0 1 2 9 5 4 3 2
-1 1 2 3 4 5 0 0
4
9 8 7 6 4 0
-1 8 7 6 4 0
4
9 8 7 6 0 4
-1 8 7 6 4 0
4
9 8 7 6 0 3
6 8 4 5 0 2
1 4 5 0 1 0
-1 8 7 6 4 0
3
1 2 3 0 0
4 5 6 0 0
-1 5 6 0 0
7
-1 1 2 3 4 5 7 2 4
7
0 1 2 3 4 6 5 1 5
-1 1 2 3 4 5 6 2 5
0


0
