#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, h;
  cin >> r >> h;
  int trenvis = 0;
  int br = 0;
  while (trenvis + r <= h + r / 2.0) {
    br += 2;
    trenvis += r;
  }
  double x = r / 2.0;
  double y = (double)(r + h - trenvis);
  double d = sqrt(x * x + y * y);
  if (d >= r) br++;
  cout << br;
  return 0;
}
