#include #include using namespace std; int main(){ int x, y; cin >> x >> y; int ans = 0; for(int i = x; i <= y; i++){ int point = 0; for(int j = 0; j*j <= i; j++){ int tmp = sqrt(i-j*j); if(tmp*tmp + j*j == i){ point += 4; if(tmp == 0 || j == 0) point -= 2; } } ans = max(ans, point); } cout << ans << endl; return 0; }