#include <bits/stdc++.h>
const long long mod = 1000000007;
const double PI = 3.14159265358979323846;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  t = 1;
  while (t--) {
    long long x, y;
    cin >> x >> y;
    vector<long long> a(3, y);
    long long max1 = 0, min2 = 1, max2 = 2;
    long long ans = 0;
    while (a[min2] < x) {
      ans++;
      a[min2] = min(x, a[max1] + a[max2] - 1);
      for (long long i = 0; i < 3; i++)
        if (a[i] > a[max1]) max1 = i;
      long long m = 0;
      for (long long i = 0; i < 3; i++)
        if (i != max1 && a[i] > m) {
          m = a[i];
          max2 = i;
        }
      for (long long i = 0; i < 3; i++)
        if (i != max1 && i != max2) min2 = i;
    }
    cout << ans;
  }
}
