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