#include <bits/stdc++.h>
using namespace std;
const int inf = 0x7f7f7f7f;
const int maxn = 100005;
int main() {
  int r, h;
  while (~scanf("%d%d", &r, &h)) {
    int n = h / r, m = h % r;
    int ans = 2 * n;
    if (2 * m >= r) {
      ans += 2;
      if (m >= sqrt(3.0) * 0.5 * r) ans++;
    } else
      ans += 1;
    printf("%d\n", ans);
  }
}
