N = int(input()) a = 0 while a * a * a <= N: if a * a * a == N : exit(print("Yes")) a += 1 print("No")