#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, h, sum, n;
  float k, l;
  cin >> r >> h;
  n = h / r;
  h -= n * r;
  l = r / 2.0;
  k = sqrt(3) / 2 * r;
  if (h < l) sum = n * 2 + 1;
  if (h >= l && h < k) sum = n * 2 + 2;
  if (h >= k) sum = n * 2 + 3;
  cout << sum << endl;
  return 0;
}
