# your code goes here #square X=int(input()) N=0 N=X i=2 a=[] c=[] while i*i<=N: if N%i==0: a.append(i) N//=i b=1 while N%i==0: N//=i b+=1 c.append(b) i+=1 if a==[]: a=[X] c=[1] else: a.append(N) c.append(1) S=1 for i in range(len(a)): if c[i]%2==1: S*=a[i] print(S)