#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
int main() {
  int num1, num2, cnt, a, b, c;
  cin >> num1 >> num2;
  a = b = c = num2;
  cnt = 0;
  while (1) {
    if (a >= num1 && b >= num1 && c >= num1) {
      cout << cnt << endl;
      break;
    }
    cnt++;
    if (cnt % 3 == 1) {
      a = b + c - 1;
    } else if (cnt % 3 == 2) {
      b = a + c - 1;
    } else if (cnt % 3 == 0) {
      c = a + b - 1;
    }
  }
}
