N = int(input()) for i in range((10**9)**int(1/3+1)+100): if i**3 == N: print("Yes") break else: print("No")