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