#include <bits/stdc++.h>
using namespace std;
int main() {
  double r, h;
  scanf("%lf%lf", &r, &h);
  int tmp = (int)h / r;
  double hehe = h - tmp * r;
  if (hehe < r / 2)
    printf("%d\n", tmp * 2 + 1);
  else if (hehe < sqrt(3) / 2 * r)
    printf("%d\n", tmp * 2 + 2);
  else
    printf("%d\n", tmp * 2 + 3);
  return 0;
}
