#include <bits/stdc++.h>
using namespace std;
int main() {
  double r, h, eps = 1e-9;
  cin >> r >> h;
  int k = h / r;
  if (h - k * r > (sqrt(3) / 2) * r - eps)
    cout << 2 * k + 3;
  else if (h - k * r > r / 2 - eps)
    cout << 2 * k + 2;
  else
    cout << 2 * k + 1;
  cout << endl;
  return 0;
}
