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