#include <bits/stdc++.h>
using namespace std;
int r, h;
int main() {
  scanf("%d%d", &r, &h);
  double tt = h + r * 1.0 / 2;
  double re = tt / r - (int)(tt / r);
  int ans;
  if (fabs(re) < 0.00001) {
    ans = (int)(tt / r) * 2;
  } else {
    ans = (int)(tt / r) * 2;
    re = h + r - (int)(tt / r) * r;
    double mm = re - sqrt(3.0) / 2 * r;
    if (mm > 0.00001) ans++;
  }
  printf("%d\n", ans);
  return 0;
}
