h,w=map(int,input().split()) if h%4==0 and w%3==0 and h>w: print('TATE') else: print('YOKO')