#include <bits/stdc++.h>
using namespace std;
int main() {
  int R, H;
  cin >> R >> H;
  R *= 2, H *= 2;
  int r = R / 2;
  int n = (H + r) / (2 * r);
  int h = H - (n * 2 * r - r) + R - r;
  bool more = false;
  if ((long long)R * R - (long long)r * r <= (long long)h * h) more = true;
  cout << 2 * n + more << '\n';
}
