#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define Would #define you const int INF = 999999999; const int MOD = 1e9 + 7; const double pi = 3.141592653589793238; int main() { long a, b, ans = 0; cin >> a >> b; for (int i = a; i <= b; ++i) { long mon = 2 * (sqrt(i) + 1); ans = max(ans, mon); } cout << ans << endl; }