#include <bits/stdc++.h>
using namespace std;
const double PI = 2.0 * acos(0.0);
const double EPS = 1e-9;
const int MOD = 1000000007;
const int INF = 1000000000;
const long long LINF = 1000000000000000000LL;
int main() {
  int r, h, ret, m, x;
  scanf("%d %d", &r, &h);
  r *= 2, h *= 2, ret = h / r * 2, m = h % r, x = m + r / 2;
  if (m >= r / 2) ret += 2, x -= r;
  if ((0.5 * r * (sqrt(3.0) + 1.0) - 1.0 * x - 1.0 * r) < EPS) ret++;
  printf("%d\n", ret);
  return 0;
}
