#include <bits/stdc++.h>
using namespace std;
int x, y;
int a[3];
int main() {
  cin >> x >> y;
  int t = 0;
  for (int i = 0; i <= 2; i++) a[i] = y;
  while (a[0] != x) {
    t++;
    sort(a, a + 3);
    a[0] = a[1] + a[2] - 1;
    a[0] = min(x, a[0]);
  }
  cout << t + 2;
  return 0;
}
