module main; // https://yukicoder.me/problems/no/102/editorial より // Grundy数 import std; void main() { // 入力 auto N = readln.split.to!(int[]); // 答えの計算と出力 N.each!((ref n) => n %= 4); N.sort; if (N.all!(a => a == N[0])) { writeln("Jiro"); } else if (N[0] == N[1] && N[1] != N[2] && N[2] == N[3]) { writeln("Jiro"); } else if (equal(N, iota(0, 4))) { writeln("Jiro"); } else { writeln("Taro"); } }