import java.util.Scanner object Main { def main(args: Array[String]) = { val sc=new Scanner(System.in) var x=sc.nextLong var y:Long=1 var i:Long=2 while(i*i<=x) { while(x%i==0) { x=x/i if(y%i!=0) y=y*i else y=y/i } i=i+1 } println(x*y) } }