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