H, W = map(int, input().split()) #H縦、W横 if H % W > 1: print(TATE) elif H % W < 1: print(YOKO)