n=gets.to_i puts Math.cbrt(n).to_i**3==n ? "Yes" : "No"