A #include <bits/stdc++.h> using namespace std; using LL = long long; LL n; signed main() { // freopen("in", "r", stdin); while (cin >> n) { LL tmp = (LL)sqrt(n); LL x = tmp * tmp, y = (tmp + 1) * (tmp + 1); if (abs(x - n) > abs(y - n)) cout << y << end...