Wall Making Game is a board game for two players who move alternately, and it is popular right now.
The game is played on a board of H×W cells. Each cell is empty, marked, or a wall. When the game starts the board has no walls.
The two players move alternately as follows.
- The player chooses one empty cell. An empty cell is a cell that is neither marked nor a wall. A player with no cell to choose loses.
- From the chosen cell the player advances one cell at a time in each of the four directions (up, down, left, right), turning every cell it passes into a wall, and stops in a direction as soon as it reaches a wall or leaves the board. The chosen cell also becomes a wall.
A marked cell cannot be chosen in step 1, but it can be turned into a wall in step 2.
Figure 1 shows a move in which the player chooses the cell in the third row and the fourth column.

Figure 1: one move in Wall Making Game.
Write a program that decides which player wins from the given initial board when both players play optimally.