use std::io::*; fn main() { let mut input: String = String::new(); std::io::stdin().read_to_string(&mut input).ok(); let mut itr = input.trim().split_whitespace(); let n: usize = itr.next().unwrap().parse().unwrap(); let m: usize = itr.next().unwrap().parse().unwrap(); let l: usize = itr.next().unwrap().parse().unwrap(); let a: Vec = (0..n) .map(|_| itr.next().unwrap().parse().unwrap()) .collect(); let mut used = vec![false; 1001]; used[l] = true; for i in 0..n { for j in 0..=1000 { if used[j] { let nv = (j + a[i]) / 2; used[nv] = true; } } } println!("{}", if used[m] { "Yes" } else { "No" }); }