#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, h;
  cin >> r >> h;
  int ans = 0;
  while (h >= r) ans += 2, h -= r;
  if (h >= (sqrt(3) * (long double)r) / 2)
    ans += 3;
  else if (h < ceil(r / 2.0))
    ans++;
  else
    ans += 2;
  cout << ans;
  return 0;
}
