#include using namespace std; typedef long long ll; #define REP(i, n) for(int(i)=0;(i)<(n);++(i)) const int MOD = 1000000007; int N,M; int main(){ REP(i,4){ cin >> N; M ^= N; } if(M){ cout << "Taro" << endl; } else { cout << "Jiro" << endl; } return 0; }