#include using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll x; cin >> x; ll y=1; for(ll i=2;i*i<=x;i++){ if(x%i==0){ int cnt=0; while(x%i==0){ x/=i; cnt++; } if(cnt%2)y*=i; } } cout << x*y << endl; }