import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines H,W = map(int,read().split()) answer = 'TATE' if H > W else 'YOKO' print(answer)