#include <bits/stdc++.h>
int main() {
  long long h, r;
  scanf("%I64d%I64d", &r, &h);
  long long sum = 0;
  sum += h / r * 2;
  long long tmp = h % r;
  if (4 * tmp * tmp >= 3 * r * r)
    sum += 3;
  else if (2 * tmp >= r)
    sum += 2;
  else
    sum += 1;
  printf("%I64d\n", sum);
  return 0;
}
