import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); double num=Double.parseDouble(br.readLine()); br.close(); long y=1; int i; for(i=2;i*i<=num;i++){ int tmp=0; while(num%i==0){ num/=i; tmp++; } if(tmp%2!=0){ y*=i; } } if(num>1){ y*=num; } System.out.println(y); } }