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