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