#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline int popcount(T t) {
  if (std::numeric_limits<T>::digits <=
      std::numeric_limits<unsigned int>::digits) {
    return __builtin_popcount(t);
  } else {
    return __builtin_popcountll(t);
  }
}
const long double EPS = 1e-8;
const long double PI = acosl(0.0) * 2;
void solve() {
  long long r, h;
  cin >> r >> h;
  long long k = 0;
  while (k * r * 2 + r <= 2 * h) ++k;
  long long q2 = r + (k - 1) * r * 2;
  long long ans = 2 * k;
  if ((2 * h - q2 + r) * (2 * h - q2 + r) >= 3 * r * r) ++ans;
  cout << ans << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  solve();
  return 0;
}
