Jenga is a game of physical skill created by British board game designer and author Leslie Scott. Jenga is played with 54 wooden blocks. Pla
yers take turns removing one block from any layer below the highest completed one and placing it horizontally atop the tower, perpendicular to any blocks on which it is to rest. The game ends when any portion of the tower collapses, caused by either the removal of a block or its new placement.
Alice and Bob are playing Agnej, a Jenga-liked building blocks game. At the beginning, Alice build a block tower of n+1n+1n+1 layers. The blocks within each layer are oriented in the same direction, with their long sides touching, and are perpendicular to the ones in the layer immediately below. Each block is mmm times as long as it is wide, so there are exactly mmm positions to place blocks in each layer, numbered from 111 to mmm. Alice and Bob take turns removing one block from any layer except the top layer, and the removed block won't be placed back atop the tower. The player who causes the tower to collapse loses the game, while the other player wins.
For simplicity, we can assume that the blocks from layer 111 (from top to bottom) to layer i−1i-1i−1 are light enough for the blocks of layer iii, and both Alice and Bob are careful enough when removing blocks. Therefore, the tower will collapse if and only if after a player removes a block of some layer lll, there are no blocks on position 111 through position ⌈m2⌉\lceil \frac{m}{2} \rceil⌈2m⌉ in layer lll, or there are no blocks on position ⌊m2⌋+1\lfloor \frac{m}{2} \rfloor + 1⌊2m⌋+1 through position mmm in layer lll.
You are given the initial shape of the tower. Assume both Alice and Bob plays optimally and Alice plays first, please determine who will win the game.