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