import java.io.*; import java.util.*; import java.util.stream.*; class Process { private int h; private int w; Process(int h, int w) { this.h = h; this.w = w; } private boolean isVertical() { return ((h / 4) == (w / 3)); } String getResult() { return (isVertical() ? "TATE" : "YOKO"); } } public class Main { public static void main(String[] args) throws IOException { var bufferedReader = new BufferedReader(new InputStreamReader(System.in)); var printWriter = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out))); // 入力 int[] input = Stream.of(bufferedReader.readLine().trim().split("\\s+")).mapToInt(Integer::parseInt).toArray(); // 処理及び出力 printWriter.println((new Process(input[0], input[1])).getResult()); bufferedReader.close(); printWriter.close(); } }