数据已加强,比赛中通过的代码可能无法再次通过。
The king, Ogre Magi has two head,the left head and the right head.They share one body, so that they wherever they want go, they have to go together. One day, left head want to go to the north, but right head want to go to the south. To make a compromise, they decide to play a game, the winner can decide which direction to go.
They has $n$ pile of stones, the $i$-th stones has $a_i$ stone. Ther played in turn. Each turn the pla
yer should choose a pile of stone and separate them into two piles which must have different nummber of stones. The head which could't make any action will lose the game.
The left head make action first.