#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair pi; typedef pair pl; int main() { ll X; cin >> X; for (ll i = 1; i <= sqrt(X); i++) { double num = X * i; double sq = sqrt(num); ll sq_i = sqrt(num); if (sq == (double)sq_i) { cout << i << endl; return 0; } } cout << X << endl; return 0; }