import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); int g = gcd(Math.max(H, W), Math.min(H, W)); H = H / g; String ans = "TATE"; if(H == 3) ans = "YOKO"; System.out.println(ans); } public static int gcd(int a, int b) { if(b == 0) return a; return gcd(b, a % b); } }