#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m, a, b, c, cn = 0;
  cin >> m >> n;
  a = n;
  b = n;
  c = n;
  while (a < m || b < m || c < m) {
    if (c < m) {
      c = a + b - 1;
      cn++;
    }
    if (a < m) {
      cn++;
      a = b + c - 1;
    }
    if (b < m) {
      cn++;
      b = a + c - 1;
    }
  }
  cout << cn;
}
