#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, h;
  scanf("%d%d", &r, &h);
  int ans = 0;
  ans += h / r * 2;
  h %= r;
  long long hh = h, rr = r;
  if (2 * hh < rr) {
    ans += 1;
  } else if (3 * rr * rr > 4 * hh * hh) {
    ans += 2;
  } else {
    ans += 3;
  }
  printf("%d\n", ans);
  return 0;
}
