4
0 1 1
0 2 4
0 3 3
1 2 1
