fn main() { let mut xx = String::new(); std::io::stdin().read_line(&mut xx).ok(); let xx: Vec = xx.split_whitespace().flat_map(str::parse).collect(); let (n, z) = (xx[0], xx[1]); if n == 1 && z >= 2 { println!("Yes"); return; } else if n == 2 { for a in 1..z { let b = f64::from(z * z - a * a).sqrt(); if b.fract() < f64::EPSILON { println!("Yes"); return; } } } println!("No"); }