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