fn main() { let nx: Vec = read_vec(); let c: Vec = read_vec(); let x = nx[1]; let cmin = c[0]; let &cmax = c.last().unwrap(); if cmin <= x && cmax >= x { println!("Yes"); } else { println!("No"); } } fn read() -> T { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); s.trim().parse().ok().unwrap() } fn read_vec() -> Vec { read::().split_whitespace() .map(|e| e.parse().ok().unwrap()).collect() }