#include <bits/stdc++.h>
using namespace std;
int main() {
  long long h, ans, r;
  cin >> r >> h;
  ans = (h + r / 2) / r * 2;
  double s = sqrt(3) - 1;
  h = h - r / 2 * s;
  ans = max(ans, (h + r / 2) / (r)*2 + 1);
  cout << ans;
}
