In the new game Clossed Loops 7, players are given a table with rows and columns. On each turn, the next player draws a cycle: a closed curve without self-intersections that runs only along the sides of the cells. Each cycle can be drawn only once throughout the game (however, it is allowed to draw cycles that intersect cycles that have already been drawn). Players take turns making moves. The player who draws the last possible cycle wins. For example, if N = 2, M = 1, there are three possible cycles, so the player who makes the third move wins:

Vasya invited K - 1 friends to play the game with him. To make an impression, he certainly wants to win. For that, he needs to know which turn he must take to guarantee his victory. Vasya knows about your programming skills, so he asked you for help.
Three integers are given: and (1 \leq N \leq 100, 1 \leq M \leq 8) — the size of the table, and (1 < K \leq 10^9) — the number of players.
Output a single integer from to — the smallest number of the player Vasya must be in order to guarantee his victory.
Example 1