fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let n: u64 = s.trim().parse().unwrap(); let mut a = "No"; for i in 1..1000001 { if i * i * i == n { a = "Yes"; break; } } println!("{a}") }