typedef long long ll; #include using namespace std; int main() { ll x,y; std::cin >> x>>y; // unordered_map cou; vector cou(16500000); ll sq = (int)sqrt(y); for (ll i = 1; i <= sq; i++) { for (ll j = 0; j <= sq; j++) { cou[(ll)i*i+(ll)j*j]++; // 1+1; } // std::cout << i << std::endl; } ll result = -1; for (ll i = x; i <= y; i++) { std::cout << i << std::endl; result = max(result,cou[i]); } std::cout << result*4 << std::endl; }