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