#include <bits/stdc++.h>
using namespace std;
long long r, h, l;
int main() {
  cin >> r >> h;
  l = h / r;
  if (h - l * r >= (r + 1) / 2) l++;
  if (sqrt((r / 2) * (r / 2) + (h + r - l * r) * (h + r - l * r)) >= r)
    cout << l * 2 + 1 << "\n";
  else
    cout << l * 2 << "\n";
  return 0;
}
