#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int ans = 0;
  bool flag = false;
  std::vector<int> v;
  v.push_back(b);
  v.push_back(b);
  v.push_back(b);
  do {
    flag = true;
    sort(v.begin(), v.end());
    if (v[0] == a && v[1] == a && v[2] == a) {
      flag = false;
    } else {
      ans++;
      v[0] = min(a, v[1] + v[2] - 1);
    }
  } while (flag);
  cout << ans << endl;
}
