#include <bits/stdc++.h>
const int maxn = 100000 + 10;
const int inf = 0x3f3f3f3f;
const double pi = acos(-1.0);
const double eps = 1e-8;
using namespace std;
int main() {
  int r, h;
  while (scanf("%d %d", &r, &h) == 2) {
    int ans = h / r * 2;
    h %= r;
    if (2 * h < r)
      ans += 1;
    else if (2 * h >= sqrt(3) * r)
      ans += 3;
    else
      ans += 2;
    printf("%d\n", ans);
  }
  return 0;
}
