#coding:utf-8 get = input() get = get.split(" ") get = list(map(int,get)) hantei = get[1] / get[0] xxx = 0.75 if(get[0] >= get[1] and hantei == xxx): print("TATE") else: print("YOKO")