#include #include #include using namespace std; using ll=long long; #define all(v) v.begin(),v.end() #define rall(v) v.rbegin(),v.rend() template bool chmax(T &a, T b){if (a < b){a = b;return true;} else return false;} template bool chmin(T &a, T b){if (a > b){a = b;return true;} else return false;} const int INF=1<<30; bool check[14][14][14][14][53][2]; int dp[14][14][14][14][53][2]; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); vectorN(4); for(int i=0;i<4;i++)cin>>N[i]; auto f=[&](auto f,int a,int b,int c,int d,int x,bool flag)->int { if(check[a][b][c][d][x][flag])return dp[a][b][c][d][x][flag]; check[a][b][c][d][x][flag]=true; int y=(N[0]+N[1]+N[2]+N[3]-a-b-c-d)-x; if(a==0&&b==0&&c==0&&d==0){ dp[a][b][c][d][x][flag]=x-y; return x-y; } int diff=0; if(flag)diff=-INF; else diff=INF; vectorv={a,b,c,d}; for(int i=0;i<4;i++){ for(int t=1;t<=3;t++){ if(v[i]0)cout<<"Taro\n"; else if(diff<0)cout<<"Jiro\n"; else cout<<"Draw\n"; }