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