h,w= gets.split(" ").map(&:to_i) if h > w then p "TATE" else p "YOKO" end