h, w = map(int, input().split() ) if 3*w == 4*h: print("YOKO") else: print("TATE")