#include <bits/stdc++.h>
using namespace std;
int t[100007], l[100007], r[100007];
int main() {
  long double r, h;
  cin >> r >> h;
  long double th, tr;
  th = h;
  tr = r;
  int ans1 = 0, ans2 = 0;
  if ((sqrt(3)) * tr <= 2 * th) {
    ans1 += 3;
    th -= ((sqrt(3)) / 2) * tr;
  }
  if (2 * h >= r) {
    ans2 += 2;
    h -= (r / 2);
  }
  while (h >= r) {
    ans2 += 2;
    h -= r;
  }
  while (th > tr) {
    ans1 += 2;
    th -= tr;
  }
  int ans;
  ans = ans1;
  if (ans1 < ans2) ans = ans2;
  if (ans == 0) ans = 1;
  cout << ans;
  return 0;
}
