#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265359;
int h, r;
int main() {
  cin >> r >> h;
  int t = h / r;
  int x = h % r;
  if (x >= r / 2.0) {
    double c = r / sqrt(2.0);
    if ((t + 1) * r + r / 2.0 * sqrt(3.0) <= h + r)
      cout << 2 * t + 3;
    else
      cout << 2 * t + 2;
  } else
    cout << 2 * t + 1;
  return 0;
}
