#include int main(void) { long long int x; scanf("%lld", &x); long long int i = 2; long long int j = 0; long long int answer = 1; while (x >= i * i) { if (x % i == 0) { x /= i; j++; } else { if (j % 2 == 1) answer *= i; j = 0; i++; } } answer *= x; printf("%lld\n", answer); return 0; }