N = int(input()) n = int(N ** (1 / 3)) for i in range(n - 1, n + 1 + 1): if i ** 3 != N: continue print('Yes') break else: print('No')