N = int(input()) ans = "No" i = 1 while True: j = i **3 if j == N: ans = "Yes" break if j > N: break i += 1 print(ans)