#include <bits/stdc++.h>
using namespace std;
long long pow(long long n,long long r, long long q,long long k)
{
r=(long long)sqrt(n);
q=r+1;
k=q*q;
return k;
}
int main()
{
long long n;
cin >> n;
long long r = (long long) sqrt(n);
long long q = r + 1;
long long k = q * q;
cout << k << endl;
return 0;
}