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