#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, h;
  cin >> r >> h;
  int answer = (h + r) / r;
  int amt = int((h + r / 2.0) / r);
  answer = max(answer, 2 * amt);
  if (amt * r + r * sqrt(3.0) / 2.0 < h + r) answer = max(answer, 2 * amt + 1);
  cout << answer;
}
