#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  double r, h;
  while (cin >> r >> h) {
    double tmp = (h + r / 2);
    int ans = (int)(tmp / r + 1e-8);
    tmp -= ans * r;
    ans *= 2;
    tmp += r / 2;
    if (tmp - r * (sqrt(3.0) / 2) > -1e-12) ans++;
    cout << ans << endl;
  }
  return 0;
}
