use std::io::Read; macro_rules! tok { ($iter: expr) => { $iter.next().unwrap().parse().unwrap() } } fn main() { let mut buf = String::new(); std::io::stdin().read_to_string(&mut buf).unwrap(); let mut iter = buf.split_whitespace(); let n: usize = tok!(iter); let x: u64 = tok!(iter); let cs: Vec = (0..n).map(|_| tok!(iter)).collect(); let ans = if n == 1 { x == cs[0] } else { cs[0] < x && x < cs[n-1] }; println!("{}", if ans { "Yes" } else { "No" }); }