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