#include using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; a %= 3; b %= 3; c %= 3; d %= 3; cout << (a^b^c^d ? "Taro" : "Jiro") << endl; }