n = read_line.to_i64 x = Math.cbrt(n).to_i64 puts (x - 2..x + 2).any? { |c| c**3 == n } ? "Yes" : "No"