N = int(input()) n = round(N**(1/3)) if n**3 == N: print('Yes') else: print('No')