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