open Batteries
let () =
  let s = Scanf.scanf "%s " (fun a -> a) in
  let t = Scanf.scanf "%s " (fun a -> a) in
  let rev_t = String.rev t in
  Printf.printf "%s\n" @@
  if s = rev_t then "YES" else "NO"
