#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
const double the = sqrt(3.0);
const double eps = 1e-8;
double R, r, h;
int k, ans1 = 0, ans2 = 0, th;
int main() {
  cin >> R >> h;
  r = R / 2.0;
  double tmp = the * r / 2.0;
  double tmp1 = 2 * r - the * r;
  k = (int)((h + tmp1) / R);
  if (h + tmp1 - (k * R + tmp + r) > eps) ans1 = 1;
  ans1 += 2 * k + 1;
  k = (int)((h - r) / R);
  if (h - r - (k * R + tmp + r) > eps) ans2 = 1;
  if (h >= r) ans2 += 2 * k + 2;
  cout << max(ans1, ans2) << endl;
  return 0;
}
