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