#P2350. Tree Mirroring

Tree Mirroring

输入格式

7 7
1 2
2 3
3 4
4 5
5 6
6 7
7 1
NO