#include #include #include #include #include #include #include #include #include static const int MOD = 1000000007; using ll = long long; using u32 = unsigned; using namespace std; template constexpr T INF = ::numeric_limits::max() / 32 * 15 + 208; int main() { int x, y; cin >> x >> y; vector v(y+1); for (int i = -4000; i <= 4000; ++i) { int w = i*i; if(w > y) continue; for (int j = -4000; j <= 4000; ++j) { if(w+j*j > y) continue; v[w+j*j]++; } } int ans = 0; for (int i = x; i <= y; ++i) { ans = max(ans, v[i]); } cout << ans << "\n"; return 0; }