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