package no300; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long x = sc.nextLong(); long x_ = x; long y = 1; for(long i=2;i*i<=x_;i++) { int a = 0; while(x % i == 0) { x /= i; a++; } if (a % 2 == 1) { y *= i; } } if (x > 1) { y *= x; } System.out.println(y); } }