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