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