#include <bits/stdc++.h>
using namespace std;
long long s, c, i, k, j, n, m, z, b;
long long t, cas, d, i1, a, i2, r, w;
long long ta[10];
vector<pair<int, int> > vk, vk2;
string wy;
vector<long long> vz;
int main() {
  cin >> a >> b;
  z = 0;
  vz.clear();
  vz.push_back(b);
  vz.push_back(b);
  vz.push_back(b);
  while (vz[0] != a) {
    if (vz[1] + vz[2] > a)
      vz[0] = a;
    else
      vz[0] = vz[1] + vz[2] - 1;
    sort(vz.begin(), vz.end());
    z++;
  }
  cout << z << endl;
  return 0;
}
