#include <bits/stdc++.h>
using namespace std;
long long r, h;
int ans;
int main() {
  scanf("%I64d%I64d", &r, &h);
  r *= 2;
  h *= 2;
  if (r / 2 > h)
    ans = 0;
  else
    ans = (h - r / 2) / r + 1;
  ans *= 2;
  long long last = (h - r / 2) / r * r + r / 2;
  if (r / 2 > h) last = 0;
  if (ans == 0)
    ans = 1;
  else if ((r * r) / 4 + (h + r / 2 - last) * (h + r / 2 - last) >= r * r)
    ans++;
  printf("%d\n", ans);
  return 0;
}
