N = int(input()) end = 10 ** 6 + 1 start = 1 while end - start > 1: mid = (start + end) // 2 if mid ** 3<= N: start = mid else: end = mid if start **3 == N: print('Yes') else: print('(No')