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