#include <bits/stdc++.h>
using namespace std;
int h, r;
int main() {
  scanf("%d%d", &r, &h);
  {
    int h1 = 2 * h, r1 = 2 * r;
    int ans1, ans2 = 0;
    ans1 = ((h1 + r) / r1);
    double remain = h1 - ans1 * r1 + r1 + r1 - sqrt(3) * r;
    ans1 *= 2;
    if (remain >= r1) ans1++;
    printf("%d\n", ans1);
  }
  return 0;
}
