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