#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int h, r;
  scanf("%d%d", &r, &h);
  int res = h / r * 2;
  double t = r + sqrt(3) / 2 * r;
  int hh = h % r;
  if (hh + r >= t)
    res += 3;
  else if (hh >= r * 1.0 / 2)
    res += 2;
  else
    res += 1;
  printf("%d\n", res);
  return 0;
}
