#include using namespace std; typedef long long ll; int main(){ ll x; cin>>x; map ls; for(int i=2;i*i<=x;i++){ while(x%i==0){ ls[i]++; x/=i; } } ls[x]++; ll y=1; for(auto it=ls.begin();it!=ls.end();it++){ if(it->second%2==1) y*=it->first; } cout<