#include <bits/stdc++.h>
const double eps = 1e-8;
int main() {
  int r, h, ans;
  double d, cc;
  while (scanf("%d%d", &r, &h) != EOF) {
    ans = 2 * (h / r);
    d = h - h / r * r;
    cc = d - r * sqrt(3) * 0.5;
    if (fabs(cc) < eps || cc > 0)
      ans += 3;
    else if (2 * d >= r)
      ans += 2;
    else
      ans++;
    printf("%d\n", ans);
  }
  return 0;
}
