h,w=map(int,input().split()) if h/(h+w)==4/7: print("TATE") if h/(h+w)==3/7: print("YOKO")