def get_horizontal(h,w): return "TATE" if h % 4 == 0 and w % 3 == 0 else "YOKO" h,w = map(int,input().split()) print(get_horizontal(h,w))