#include <bits/stdc++.h>
using namespace std;
const int N = 2000010;
int main() {
  vector<int> a(3);
  int x, y;
  while (cin >> x >> y) {
    for (int i = 0; i < 3; i++) {
      a[i] = y;
    }
    int res = 0;
    while (true) {
      sort(a.begin(), a.end());
      if (a[0] == x) break;
      res++;
      a[0] = min(x, (a[1] + a[2] - 1));
    }
    printf("%d\n", res);
  }
  return 0;
}
