#include #include #include constexpr int X = 4000; constexpr int R = 10000000; int dist(int x, int y) { return x * x + y * y; } void solve() { std::vector cnt(R + 1, 0); for (int x = -X; x <= X; ++x) { for (int y = -X; y <= X; ++y) { int d = dist(x, y); if (d <= R) ++cnt[d]; } } int x, y; std::cin >> x >> y; std::cout << *std::max_element(cnt.begin() + x, cnt.begin() + y + 1) << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }