def main(): n = int(input()) for i in range(1, 10 ** 6 + 1): if i ** 3 == n: exit(print("Yes")) print("NO") if __name__ == "__main__": main()