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