When Ankica finally caught Branko, he refused to buy her newspapers and demanded they should play a different game because the last one was rigged. Ankica innocently suggested another game involving stones, but Branko was rightly suspicious, and decided to completely change its rules.
The game involves N piles of stones with the i-th pile having a_i stones, and players take turns removing some number of stones from a pile. The player that removes the last stone wins the game.
The catch is that the pile from which a player must remove a certain number of stones in a particular turn is forced by the other player.
More precisely, with turns indexed by increasing integers starting from 1, the game proceeds as follows:
Branko found a bunch of stones, formed some piles and they began playing. As a professional gamer, Ankica quickly realized that the starting configuration of stones is winning for her, i.e. that she can win no matter how Branko plays the rest of the game.
Could you win the game in Ankica’s situation?