#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  cin >> x >> y;
  int cnt = 0;
  int a = y, b = y, c = y;
  while (a != x || b != x || c != x) {
    if (a != x) {
      a = min((b + c - 1), x);
      cnt++;
    }
    if (b != x) {
      b = min((a + c - 1), x);
      cnt++;
    }
    if (c != x) {
      c = min((a + b - 1), x);
      cnt++;
    }
  }
  cout << cnt;
}
