#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const long double PI = 3.14159265358979323846;
struct myCompare {
  bool operator()(const std::pair<int, int> &l,
                  const std::pair<int, int> &r) const {
    return l.first < r.first;
  }
};
const int MAXN = 1e5 + 3;
int x, y;
void solve() {
  cin >> x >> y;
  int a, b, c;
  a = b = c = y;
  int ma, res = 0, t;
  if (x != y) {
    while (a != x || b != x || c != x) {
      res++;
      if (a < b) swap(a, b);
      if (a < c) swap(a, c);
      if (b < c) swap(b, c);
      c = min(x, a + b - 1);
    }
  }
  cout << res;
}
int main() {
  solve();
  return 0;
}
