S=input().split(' ') H=int(S[0]) W=int(S[1]) if(H / W ==4/3): print('TATE') else: print('YOKO')