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