using System; namespace ConsoleApp11 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); ulong H = ulong.Parse(str[0]); ulong W = ulong.Parse(str[1]); if(H > W) { Console.WriteLine("TATE"); } else if(W > H) { Console.WriteLine("YOKO"); } } } }