10
5 2 5
0 5 4
5 4 1
0 3 2
5 1 2
1 1 1
3 1 2
5 3 2
0 4 0
0 0 0
10
0
3
4
4
7
1
6
7
3
7
