N = int(input()) ans =False for i in range(int(pow(N,1/3))-10,int(pow(N,1/3))+10): ans = (ans or N==i**3) if ans: print('Yes') else: print('No')