#include <bits/stdc++.h>
using namespace std;
int n, m, ans;
double dis(double x, double y, double xx, double yy) {
  return sqrt((x - xx) * (x - xx) + (y - yy) * (y - yy));
}
int calc(double r, double h) {
  h /= r;
  r = 1.0;
  int le = 0;
  while (h + 0.5 - (le + 1) * 1.0 >= -1e-6) le++;
  ans = le * 2;
  if (le == 0 && dis(1.0, h + 0.5, 1.0, 0.0) >= 1.0)
    ans++;
  else if (dis(1.0, h + 0.5, 0.5, le - 0.5) >= 1.0)
    ans++;
  return ans;
}
int main() {
  cin >> n >> m;
  printf("%d\n", calc((double)n, (double)m));
  return 0;
}
