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