#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int x, y; cin >> x >> y; long long ans = 0; for(int i = x; i <= y; i++) { long long a = 0; for(int j = 1; j * j <= i; j++) { if(i % j == 0) { if(j % 4 == 1) a++; if(j % 3 == 0) a--; int k = i / j; if(j == k) continue; if(k % 4 == 1) a++; if(k % 3 == 0) a--; } } ans = max(ans, a * 4); } cout << ans << endl; return 0; }