#include <bits/stdc++.h>
using namespace std;
double r, h, l;
int sum;
int main() {
  scanf("%lf%lf", &r, &h);
  sum += int(h / r);
  l = h - r * sum;
  sum *= 2;
  double r1 = r + l;
  if (r1 - sqrt(3) / 2 * r - (double)1 / 2 * r >= r / 2) {
    sum += 3;
    cout << sum << endl;
    return 0;
  }
  if (l >= r / 2) {
    sum += 2;
    cout << sum << endl;
    return 0;
  } else {
    sum += 1;
    cout << sum << endl;
    return 0;
  }
  cout << sum << endl;
  return 0;
}
