import java.util.Scanner; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int h = in.nextInt(); int w = in.nextInt(); if(h / 4 == w / 3) System.out.println("TATE"); else System.out.println("YOKO"); in.close(); } }