#include <bits/stdc++.h>
using namespace std;
long long h, r;
long long ans = 0;
double pl;
signed main() {
  scanf("%lld%lld", &r, &h);
  ans += h / r;
  h -= ans * r;
  ans *= 2;
  pl = 0;
  if (2 * h >= r) ans += 2, pl = (double)(h - r), h = 0;
  double len = sqrt(3) * r / 2.0;
  if ((double)(pl + h + r) - len > 0) ans += 1;
  cout << ans;
}
