#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-7;
int main() {
  int r, h;
  cin >> r >> h;
  int quant = h / r;
  int rest = ceil(((double)h) / r) * r - h;
  quant *= 2;
  if (rest > EPS && rest < r / 2.0 + EPS)
    quant += 2;
  else
    rest = 0;
  if (rest < r - ((sqrt(3) / 2) * r) + EPS) quant++;
  cout << quant << endl;
  return 0;
}
