#include <bits/stdc++.h>
int main() {
  int a, b, s = 0;
  scanf("%d%d", &a, &b);
  s += (b / a) * 2;
  b -= (b / a) * a;
  if (b < (double)a / 2)
    s++;
  else {
    if ((double)b - (double)a * sqrt(3) / 2 > 0)
      s += 3;
    else
      s += 2;
  }
  printf("%d", s);
}
