{"raw_statement":[{"iden":"problem statement","content":"There are $N$ squares called square $1$, square $2$, $\\ldots$, square $N$, where square $i$ and square $i+1$ are adjacent for each $i = 1, 2, \\ldots, N-1$.\nInitially, $M$ of the squares have $0$ or $1$ written on them. Specifically, for each $i = 1, 2, \\ldots, M$, $Y_i$ is written on square $X_i$. The other $N-M$ squares have nothing written on them.\nTakahashi and Aoki will play a game against each other. The two will alternately act as follows, with Takahashi going first.\n\n*   Choose a square with nothing written yet, and write $0$ or $1$ on that square. Here, it is forbidden to make two adjacent squares have the same digit written on them.\n\nThe first player to be unable to act loses; the other player wins.\nDetermine the winner when both players adopt the optimal strategy for their own victory."},{"iden":"constraints","content":"*   $1 \\leq N \\leq 10^{18}$\n*   $0 \\leq M \\leq \\min\\lbrace N, 2 \\times 10^5 \\rbrace$\n*   $1 \\leq X_1 \\lt X_2 \\lt \\cdots \\lt X_M \\leq N$\n*   $Y_i \\in \\lbrace 0, 1\\rbrace$\n*   $X_i + 1 = X_{i+1} \\implies Y_i \\neq Y_{i+1}$\n*   All values in the input are integers."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$N$ $M$\n$X_1$ $Y_1$\n$X_2$ $Y_2$\n$\\vdots$\n$X_M$ $Y_M$"},{"iden":"sample input 1","content":"7 2\n2 0\n4 1"},{"iden":"sample output 1","content":"Takahashi\n\nHere is one possible progression of the game.\n\n1.  Takahashi writes $0$ on square $6$.\n2.  Aoki writes $1$ on square $1$.\n3.  Takahashi writes $1$ on square $7$.\n\nThen, Aoki cannot write $0$ or $1$ on any square, so Takahashi wins."},{"iden":"sample input 2","content":"3 3\n1 1\n2 0\n3 1"},{"iden":"sample output 2","content":"Aoki\n\nSince every square already has $0$ or $1$ written at the beginning, Takahashi, who goes first, cannot act, so Aoki wins."},{"iden":"sample input 3","content":"1000000000000000000 0"},{"iden":"sample output 3","content":"Aoki"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}