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