h, w = [int(x) for x in input().split()] if h/w == 4/3: print('TATE') else: print('YOKO')