#include typedef long long ll; using namespace std; #define all(x) (x).begin(), (x).end() #define MOD 1000000007 int main() { ll x, y; cin >> x >> y; map mp; for(int i = -3163; i <= 3163; i++) { for(int j = -3163; j <= 3163; j++) { if(x <= i * i + j * j && i * i + j * j <= y) { mp[i * i + j * j]++; } } } ll ans = 0; for(auto e : mp) { ans = max(ans, e.second); } cout << ans << endl; }