101900: [AtCoder]ABC190 A - Very Very Primitive Game

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:9 Solved:0

Description

Score : $100$ points

Problem Statement

Takahashi and Aoki will play a game against each other.
Initially, Takahashi and Aoki have $A$ and $B$ candies, respectively.
They will alternately do the operation below. Takahashi goes first if $C=0$, and Aoki goes first if $C=1$.

  • Eat one of the candies he has.

The person who first becomes unable to do the operation loses. Which person will win?

Constraints

  • All values in input are integers.
  • $0 ≤ A, B ≤ 100$
  • $C \in \{0, 1\}$

Input

Input is given from Standard Input in the following format:

$A$ $B$ $C$

Output

If Takahashi will win, print Takahashi; if Aoki will win, print Aoki.


Sample Input 1

2 1 0

Sample Output 1

Takahashi

Initially, Takahashi and Aoki have $2$ and $1$ candy(ies), respectively. The game will proceed as follows:

  • Takahashi eats his candy.
  • Aoki eats his candy.
  • Takahashi eats his candy.
  • Aoki has no more candies, so Takahashi wins.

Sample Input 2

2 2 0

Sample Output 2

Aoki

Sample Input 3

2 2 1

Sample Output 3

Takahashi

Input

题意翻译

高桥有 $A$ 颗糖,青木有 $B$ 颗糖,满足 $0\leq A,B\leq100$ . 他们轮流吃糖,先没糖可吃的人就输了 . 又有一个整数 $C\in0,1$ ,$C=0$ 则高桥先吃,否则青木先吃 . 问谁会赢。高桥赢输出 Takahashi ,否则输出 Aoki .

加入题单

算法标签: