#include using namespace std; int X,Y; vector arr; bool is_square(int n) { int rt = (int)sqrt(n); return rt*rt == n; } int calc(int n) { int ret = 0; for (int i=0; i> X >> Y; int a = 1; while(a*a <= Y) { arr.push_back(a*a); a++; } int ans = 0; for (int n=Y; n>=max(X,Y-10000); n--) { ans = max(ans, calc(n)); } cout << ans << endl; }