h,w=[int(x) for x in input().split()] print("TATE") if h*3==w*4 else print("YOKO")