fn main() { println!("{}", if solve() { "Yes" } else { "No" }); } fn solve() -> bool { let (n, x, y) = { let mut line = String::new(); std::io::stdin().read_line(&mut line).unwrap(); let mut iter = line.split_whitespace(); ( iter.next().unwrap().parse::().unwrap(), iter.next().unwrap().parse::().unwrap(), iter.next().unwrap().parse::().unwrap(), ) }; let rr = { let mut line = String::new(); std::io::stdin().read_line(&mut line).unwrap(); line.split_whitespace() .map(|x| x.parse::().unwrap()) .collect::>() }; let sq_dist = x.pow(2) + y.pow(2); if n == 1 { return sq_dist == rr[0].pow(2); } let max_dist = rr[0] + 2 * rr.iter().skip(1).sum::(); sq_dist / max_dist <= max_dist }