#include #include int main() { double x; std::cin >> x; long long y = 1; while (true) { double z = sqrt(x * y); if (z == static_cast(z)) { std::cout << static_cast(y) << std::endl; break; } y++; } return 0; }