#include <bits/stdc++.h>
using namespace std;
int r, h;
int ans;
void input() { cin >> r >> h; }
void solve() {
  ans = h / r * 2;
  double t = h - h / r * r;
  if (t >= sqrt((double)3) / 2.0 * r)
    ans += 3;
  else if (t >= r / 2.0)
    ans += 2;
  else
    ans++;
  cout << ans << "\n";
}
int main() {
  input();
  solve();
  return 0;
}
