#include #include #include using namespace std; using ll = long long; int dp[14][14][14][14][53]; int seen[14][14][14][14][53]; int n[5]; int main(void){ int sum=0; for(int i=0; i<4; i++) cin >> n[i], sum+=n[i]; auto dfs=[&](auto dfs, int x[5]){ if(seen[x[0]][x[1]][x[2]][x[3]][x[4]]) return dp[x[0]][x[1]][x[2]][x[3]][x[4]]; seen[x[0]][x[1]][x[2]][x[3]][x[4]]=1; if(x[0]==0&&x[1]==0&&x[2]==0&&x[3]==0){ return dp[x[0]][x[1]][x[2]][x[3]][x[4]]=x[4]; } int ans=-1e9; int opp=sum-x[0]-x[1]-x[2]-x[3]-x[4]; for(int i=0; i<4; i++){ int nx[5]={x[0], x[1], x[2], x[3], x[4]}; for(int j=1; j<=3; j++){ if(nx[i]jiro?"Taro":"Jiro") << endl; return 0; }