HW = raw_input().split() H = int(HW[0]) W = int(HW[1]) if H / W == 4 / 3: print "TATE" else: print "YOKO"