#include <bits/stdc++.h>
using namespace std;
double r, h, b = 3, k;
long n1, n2;
int main() {
  cin >> r >> h;
  n1 = (h + r / 2) / r;
  k = r / 2 * (2 - sqrt(b));
  n2 = (h + k) / r;
  cout << max((n1 * 2), (n2 * 2 + 1));
  return 0;
}
