#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 10;
const int MAXN = 1e4 + 10;
const int MOD = 1e9 + 7;
const int inf = 1e9;
const double pi = acos(-1.0);
const double eps = 1e-6;
int dx[] = {0, -1, 0, 1};
int dy[] = {1, 0, -1, 0};
int x, y;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int a, b, c;
  cin >> x >> y;
  a = b = c = y;
  int res = 0;
  while (a < x || b < x || c < x) {
    int maxa = max(a, max(b, c));
    int maxc = min(a, min(b, c));
    int maxb = a + b + c - maxa - maxc;
    int l = maxa + maxb - maxc - 1;
    if (a == maxc)
      a += l;
    else if (b == maxc)
      b += l;
    else
      c += l;
    res++;
  }
  cout << res;
  return 0;
}
