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