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