#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000007;
const int N = 100100;
double delta;
long long h, r;
long long ans, ok;
int main() {
  cin >> r >> h;
  ans = h / r;
  h %= r;
  if (!h)
    ok = 1;
  else if (h * 2 < r)
    ok = 1;
  else if (h * 2 >= sqrt((double)3) * r)
    ok = 3;
  else
    ok = 2;
  cout << ans * 2 + ok;
}
