#include <bits/stdc++.h>
using namespace std;
int sgn(double a, double b) {
  if (fabs(a - b) < 1e-9) return 0;
  if (a - b > 0)
    return 1;
  else
    return -1;
}
int main() {
  int r, h;
  scanf("%d%d", &r, &h);
  int ans = h / r;
  double kk = h - r * ans;
  ans = 2 * ans;
  if (sgn(kk, sqrt(3.0) / 2.0 * r) >= 0)
    printf("%d", ans + 3);
  else if (sgn(kk, r * 1.0 / 2) >= 0)
    printf("%d", ans + 2);
  else
    printf("%d", ans + 1);
}
