tate, yoko = list(map(int, input().split())) if (tate%4 == 0 and yoko/(tate/4) == 3): print('TATE') else: print('YOKO')