# include using namespace std; typedef long long ll; # define int long long # define lc u << 1 # define rc u << 1 | 1 # define fi first # define se second int x; signed main () { // freopen ("square.in", "r", stdin); freopen ("square.out", "w", stdout); scanf ("%lld", &x); for (int i = 2; i * i <= x; i ++ ) { while (x % (i * i) == 0) x /= (i * i); } printf ("%lld", x); return 0; }