n = read_line.to_i64 puts Math.cbrt(n).to_i64 ** 3 == n ? "Yes" : "No"