def gcd(a, b): while b: a, b = b, a % b return a tv_wh = list(map(int,input().split())) gcd = gcd(tv_wh[0],tv_wh[1]) tv_wh[0] /= gcd tv_wh[1] /= gcd if tv_wh[0] == 4.0 and tv_wh[1] == 3.0: print("TATE") elif tv_wh[0] == 3.0 and tv_wh[1] == 4.0: print("YOKO")