#include <bits/stdc++.h>
using namespace std;
int h, r;
const double xx = sqrt(3.0);
int main() {
  scanf("%d%d", &r, &h);
  double mod = h % r;
  int ans = h / r * 2;
  if (r <= 2 * (int)mod) {
    ans += 2;
    if (mod - xx * r / 2.0 > -1e-8) {
      ans++;
    }
  } else {
    ans++;
    if (mod + (2.0 - xx) / 4.0 * r - xx * r / 2.0 > -1e-8 && ans >= 4) {
      ans++;
    } else if (mod - xx * r / 2.0 > -1e-8) {
      ans++;
    }
  }
  printf("%d\n", ans);
  return 0;
}
