fn run() { let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); let a: Vec = s.trim().split_whitespace().map(|s| s.parse().unwrap()).collect(); let ans = if a[0] < a[1] && a[2] > a[3] { "YES" } else { "NO" }; println!("{}", ans); } fn main() { run(); }