#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cout.tie(0);
  cin.tie(0);
  int x, y;
  cin >> x >> y;
  int a, b, c, t = 0;
  a = b = c = y;
  while (1) {
    if (a >= x and b >= x and c >= x) {
      cout << t;
      return 0;
    }
    if (t % 3 == 0)
      a = b + c - 1;
    else if (t % 3 == 1)
      b = a + c - 1;
    else
      c = a + b - 1;
    ++t;
  }
}
