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