#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, h, ans;
  cin >> r >> h;
  ans = 2 * (h / r);
  h %= r;
  if (h * 2 < r)
    ans++;
  else if (h * 2 >= r * sqrt(3))
    ans += 3;
  else
    ans += 2;
  cout << ans;
  return 0;
}
