#include <bits/stdc++.h>
using namespace std;
void sprint(string s) {
  for (int i = 0; i < s.size(); ++i) printf("%c", s[i]);
  printf("\n");
}
int main() {
  int r, h;
  cin >> r >> h;
  int ans = h / r;
  h -= ans * r;
  ans *= 2;
  double temp = h + r;
  double R = r;
  R /= 2.0;
  double f = (2.0 * R) + (sqrtf(3)) * (R);
  if (f <= temp)
    ans += 3;
  else if (2 * h >= r)
    ans += 2;
  else
    ans++;
  cout << ans << endl;
  return 0;
}
