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