#include #include #include #include #include #include #include #include #include #include #include using ll = long long; using namespace std; int main() { ll x, y = 1, fac = 2; cin >> x; while (x > fac && x != 1){ int num = 0; while (x % fac == 0) { num++; x /= fac; } if (num%2) y *= fac; fac++; } cout << y << endl; }