import java.util.Scanner; public class N300 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long x=sc.nextLong(); long ans=1; while(x!=1) { for(int i=2;i<=x;i++) { if(x%i==0){ans=(ans%i==0)?ans/i:ans*i;x/=i;break;} } } System.out.println(ans); } }