#include <bits/stdc++.h>
using namespace std;
int r, h;
int main() {
  scanf("%d%d", &r, &h);
  double x = double(h % r) / double(r);
  printf("%d\n", h / r * 2 + 1 + (x >= 0.5) + (x >= sqrt(3.0) / 2.));
}
