@staticmethod
def c():
    n = int(sys.stdin.readline().rstrip())
    flg = ((n.bit_length() & 1) ^ 1)
    t = 0
    x = 1
    while (x <= n):
        t += 1
        x = (((2 * x) + 1) if ((t & 1) ^ flg) else (2 * x))
    print(('Aoki' if (t & 1) else 'Takahashi'))
@staticmethod
def c():
    n = int(sys.stdin.readline().rstrip())
    flg = ((n.bit_length() & 1) ^ 1)
    t = 0
    x = 1
    while (x <= n):
        t += 1
        x = (((2 * x) + 1) if ((t & 1) ^ flg) else (2 * x))
    print(('Aoki' if (t & 1) else 'Takahashi'))