#include <bits/stdc++.h>
using namespace std;
int _neg = 0;
void test() {
  int r, h;
  cin >> r >> h;
  int c = 0;
  c = h / r;
  c <<= 1;
  if (h % r >= 1.0 * r * (sqrt(3)) / 2)
    c += 3;
  else if (h % r >= 1.0 * r / 2)
    c += 2;
  else
    c++;
  cout << c;
}
int main() {
x:
  test();
  return 0;
}
