import numpy def main(): N = int(input()) print('Yes') if numpy.cbrt(N).is_integer() else print('No') if __name__ == '__main__': main()