#include <iostream>
#include <climits>
using namespace std;


int main()
{
    #ifndef ONLINE_JUDGE
    freopen("input.txt","r",stdin);
   // freopen("output.txt","w",stdout);
    #endif

    int n,min = INT_MAX;

    for(int i = 0 ; i < 4; i++)
    {
        cin >> n;
        if(n < min) min = n;
    }
    
    cout << min << endl;

    return 0;
}
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);++i)
using namespace std;
using P = pair<int,int>;

int main(void){
    int A,B,C;
    cin >> A >> B >> C;
    rep(i,100){
        if(C==0){
            A--;
            if(A<=0){
                printf("Aoki");
                return 0;
            }
            B--;
            if(B<=0){
                printf("Takahashi");
                return 0;
            }
        }else{
            B--;
            if(B<=0){
                printf("Takahashi");
                return 0;
            }
            A--;
            if(A<=0){
                printf("Aoki");
                return 0;
            }
        }

    }
    return 0;
}