#include<iostream> #include<cmath> using namespace std; int main(){ long long n; cin>>n; cout<<pow(ceil(sqrt(n)),2); return 0; }