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