#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("no-stack-protector")
#pragma GCC target("sse,sse2,ssse3,sse3,sse4,popcnt,avx,mmx,abm,tune=native")
using namespace std;
signed main() {
  cin.tie(nullptr)->sync_with_stdio(false);
  long long r, h;
  cin >> r >> h;
  long long ans = 0;
  long long n = h / r;
  ans += 2 * n;
  h -= n * r;
  if (h >= r * (sqrt(3) / 2))
    ans += 3;
  else if (h * 2 >= r)
    ans += 2;
  else
    ans++;
  cout << ans << "\n";
}
