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