while 1:n=input();p=s=1;exec"m=n/p;t=s\nwhile t%p*m:m/=p;s*=p\np+=1;"*n;print s