#include using namespace std; int main() { long x, y = 1; cin >> x; while (sqrt(x * y) != (long) sqrt(x * y)) y++; cout << y << "\n"; }