#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  cin >> x >> y;
  int a = y, b = y, c = y;
  int count = 0;
  while (1) {
    if (a >= x && b >= x && c >= x) {
      break;
    }
    count++;
    if (count % 3 == 1) {
      a = b + c - 1;
    }
    if (count % 3 == 2) {
      b = a + c - 1;
    }
    if (count % 3 == 0) {
      c = a + b - 1;
    }
  }
  cout << count << endl;
}
