H,W=map(int,input().split()) if H/W==4/3: print('TATE') elif H/W==3/4: print('YOKO')