#include <bits/stdc++.h>
using namespace std;
static const int INF = 500000000;
template <class T>
void debug(T a, T b) {
  for (; a != b; ++a) cerr << *a << ' ';
  cerr << endl;
}
int main() {
  int r, h;
  cin >> r >> h;
  int h2 = h / r;
  int res;
  if ((h % r) * 2 >= r) res = h2 * 2 + 2;
  double h3 = h / (double)r + 1 - sqrt(3.0) / 2;
  res = max(res, 1 + 2 * (int)h3);
  printf("%d\n", res);
  return 0;
}
