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