# your code goes here H, W = list(map(int, input().split())) if 3*H == 4*W: print('TATE') else: print('YOKO')