#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  cin >> x >> y;
  int a[3];
  a[0] = y;
  a[1] = y;
  a[2] = y;
  int c = 0;
  while (a[0] != x || a[1] != x || a[2] != x) {
    a[0] = min(a[1] + a[2] - 1, x);
    sort(a, a + 3);
    c++;
  }
  cout << c << endl;
}
