print((function (h, w) return h>w and "TATE" or "YOKO" end)(io.stdin:read("*n"), io.stdin:read("*n")))