#include <bits/stdc++.h>
using namespace std;
int r, h, ans;
int main() {
  scanf("%d%d", &r, &h);
  ans += (h / r) * 2;
  if (double(h % r) >= double(r) / 2.0) {
    ans += 2;
    if (double(h % r) >= double(r) * sqrt(3) / 2.0) ans++;
  } else
    ans++;
  cout << ans << endl;
  return 0;
}
