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 y = 1; for(int i=2;i<=x;i++) { int a = 0; while(x % i == 0) { x /= i; a++; } if (a % 2 == 1) { y *= i; } } System.out.println(y); } }