let () = let h, w = Scanf.scanf "%d %d\n" (fun a b -> a, b) in Printf.printf "%s\n" (if h / 4 * 3 = w then "TATE" else "YOKO")