#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, h;
  cin >> r;
  cin >> h;
  int ans, d, n;
  n = h / r;
  ans = 2 * n;
  d = h % r;
  float t, s;
  t = (float)r / 2.0;
  s = (float)r * 1.732;
  s /= 2.0;
  if ((float)d < t)
    cout << ans + 1 << endl;
  else if ((float)d < s)
    cout << ans + 2 << endl;
  else
    cout << ans + 3 << endl;
  return 0;
}
