using System; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var h = input[0]; var w = input[1]; Console.WriteLine( h.CompareTo(w) == 1 ? "TATE" : "YOKO"); } }