def main(): N = int(input()) for n in range((10 ** 6) + 1): if N == n ** 3: print('Yes') break else: print('No') if __name__ == '__main__': main()