#include <bits/stdc++.h>
int max(int a, int b) { return (a > b) ? a : b; }
int h, r;
int main() {
  scanf("%d %d", &r, &h);
  printf("%d", max(2 * (h * 2 + r) / (2 * r),
                   1 + 2 * (int)((2 * h + r * (2 - sqrt(3))) / (2 * r))));
  return 0;
}
