H,W=map(int,input().split()) if H/W==4/3: print('TATE') else: print('YOKO')