h,w=(int(i) for i in input().split()) if h/w==4/3: print('TATE') else: print('YOKO')