h, w = map(int, input().split()) if h * 3 == w * 4: print('TATE') else: print('YOKO')