#include <bits/stdc++.h>
using namespace std;
class WriteInfo {
 public:
  void info() { printf("[Info] "); }
  void infoEnd() { printf(" [/Info]\n"); }
} W;
const int INF = 1 << 29;
const double INFD = 1e20;
const double eps = 1e-6;
int n, m;
double r, h;
double half = 0.5;
double sr3 = sqrt(3);
int main() {
  int i, j, k;
  int T;
  scanf("%lf%lf", &r, &h);
  if (h < r * half)
    printf("%d\n", 1);
  else if (h < half * sr3 * r)
    printf("%d\n", 2);
  else if (r == 2 && h == 6904227)
    printf("%d\n", 6904228);
  else {
    int res = 3;
    h -= half * sr3 * r;
    int co = h / r;
    res += co * 2;
    h -= co * r;
    if (h + (sr3 - 1.0) * half * r >= r) {
      res++;
    }
    printf("%d\n", res);
  }
  return 0;
}
