n = gets.to_i cnt = 1 while cnt ** 3 <= n if cnt ** 3 == n puts "Yes" exit end cnt += 1 end puts "No"