let () = Scanf.scanf "%d %d %d %d\n" @@ fun a b c d -> Printf.printf "%s\n" (if a < b && c > d then "YES" else "NO")