h, w = map(int, raw_input().split()) if h * 3 == w * 4: print "TATE" else: print "YOKO"