样例5-7

 

样例5-8

 

样例6-1

 

样例6-2

1 2 3 4 5 6 7 8