#include <bits/stdc++.h>
using namespace std;
int ans, h, r;
double c1x, c1y, c2x, c2y, c3x, c3y;
double dist(double ax, double ay, double bx, double by) {
  return (ax - bx) * (ax - bx) + (ay - by) * (ay - by);
}
int main() {
  cin >> r >> h;
  ans = h / r * 2;
  h -= h / r * r;
  if (h * 2 >= r) {
    ans += 2;
    c1x = (double)r / 2;
    c2x = (double)r / 2;
    c1y = c2y = (double)r / 2 - h;
    c3x = r;
    c3y = r / 2;
    if (dist(c3x, c3y, c1x, c1y) >= 1LL * r * r) ans++;
  } else
    ans++;
  cout << ans;
  return 0;
}
