#include <bits/stdc++.h>
using namespace std;
using namespace std;
void chekarre(int* arr, int n) {
  cout << "[";
  for (int i = 0; i < n; i++) cout << arr[i] << " ";
  cout << "]" << endl;
}
int hahahaha;
inline int haint() {
  register char c = 0;
  while (c < 33) c = getchar();
  hahahaha = 0;
  while (c > 33) {
    hahahaha = hahahaha * 10 + c - '0';
    c = getchar();
  }
  return hahahaha;
}
int n, m;
int solve() { return 1; }
double quad(double a, double b, double c) {
  double x, temp;
  temp = b * b - 4 * a * c;
  if (temp < 0)
    return 0;
  else
    x = (-b / 2 + sqrt(temp) / 2) / a;
  return x;
}
bool input() {
  int r, h;
  cin >> r >> h;
  int x = h % r, n1 = h / r * 2;
  if (x >= sqrt(3) / 2 * r)
    n1 += 3;
  else if (2 * x >= r)
    n1 += 2;
  else
    n1++;
  cout << n1;
  return true;
}
int main() {
  int T = 1;
  for (int testnum = 1; testnum <= T; testnum++) {
    if (!input()) break;
    solve();
  }
  return 0;
}
