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