#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define all(x) (x).begin(),(x).end() #define rep(i,m,n) for(int i = m;i < n;++i) #define pb push_back #define fore(i,a) for(auto &i:a) #define rrep(i,m,n) for(int i = m;i >= n;--i) #define INF INT_MAX/2 using namespace std; using ll = long long; using R = double; const ll MOD = 1e9 + 7; const ll inf = 1LL << 50; struct edge { ll from; ll to; ll cost; }; int main(){ int X, Y; cin >> X >> Y; vectorr(10000010,0); rep(x, -4000, 4000)rep(y, -4000, 4000) { if (x*x + y*y <= 10000005) { r[x*x + y*y]++; } } int ans = -1; rep(i, X, Y + 1) { ans = max(ans,r[i]); } cout << ans << endl; return 0; }