#include <bits/stdc++.h>
using namespace std;
int main() {
  long long l, r;
  cin >> r >> l;
  long long ans = (l / r) * 2;
  l = l % r;
  if (((long double)(2 * l)) >= (((long double)r) * (1.73205080756887)))
    ans += 3;
  else if (2 * l >= r)
    ans += 2;
  else
    ans += 1;
  cout << ans << endl;
}
