#include <bits/stdc++.h>
using namespace std;
int DDDF = 0, DDDS = 0;
bool Sortpair(pair<int, int> a, pair<int, int> b) {
  return a.second < b.second;
}
string con(string s, int i) {
  string t = "";
  for (int k = 0; k < i; k++) t += s[k];
  for (int j = (i + 1); j < s.length(); j++) {
    t += s[j];
  }
  return t;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int x, y;
  cin >> x >> y;
  vector<int> v(3, y);
  int r = 0;
  while (v[0] != x) {
    v[0] = min(v[1] + v[2] - 1, x);
    sort(v.begin(), v.end());
    r++;
  }
  cout << r;
  return 0;
}
