#include <bits/stdc++.h>
using namespace std;
int main() {
  double r, h;
  cin >> r >> h;
  int n = (int)((h + r / 2 + 0.1) / r);
  double l = h + r - n * r;
  double r2 = l * l + r * r / 4;
  double d = r2 - r * r;
  if (r2 - r * r > -1e-8)
    printf("%d\n", n * 2 + 1);
  else
    printf("%d\n", n * 2);
  return 0;
}
