a,b = map(int,input().split()) print("TATE" if a*3 == b*4 else "YOKO")