import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000427_Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { String[] x = br.readLine().split(" "); System.out.println(4 * Integer.parseInt(x[1]) == 3 * Integer.parseInt(x[0]) ? "TATE" : "YOKO"); } }