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