X=long(raw_input()) Y,div=1,2 while(X>1 and div<=X): count=0 while(X%div==0): X/=div count+=1 if count%2==1:Y*=div div+=1 print Y