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