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