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