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