#include <bits/stdc++.h>
const double PI = acos(-1.0);
const double e = exp(1.0);
const int INF = 0x7fffffff;
;
template <class T>
T gcd(T a, T b) {
  return b ? gcd(b, a % b) : a;
}
template <class T>
T lcm(T a, T b) {
  return a / gcd(a, b) * b;
}
template <class T>
inline T Min(T a, T b) {
  return a < b ? a : b;
}
template <class T>
inline T Max(T a, T b) {
  return a > b ? a : b;
}
bool cmpbig(int a, int b) { return a > b; }
bool cmpsmall(int a, int b) { return a < b; }
using namespace std;
char dir[100010];
int main() {
  int x, y;
  while (~scanf("%d%d", &x, &y)) {
    int cnt = 0;
    int a = y, b = y, c = y;
    while (a != x || b != x || c != x) {
      if (a <= b && a <= c) {
        if (b + c - 1 < x)
          a = b + c - 1;
        else
          a = x;
        cnt++;
      } else if (b <= a && b <= c) {
        if (a + c - 1 < x)
          b = a + c - 1;
        else
          b = x;
        cnt++;
      } else if (c <= a && c <= b) {
        if (a + b - 1 < x)
          c = a + b - 1;
        else
          c = x;
        cnt++;
      }
    }
    printf("%d\n", cnt);
  }
  return 0;
}
