#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int a, b;
  cin >> a >> b;
  vector<long long int> ar(3, b);
  long long int cnt = 0;
  while (1) {
    if (ar[0] >= a && ar[1] >= a && ar[2] >= a) {
      cout << cnt << "\n";
      break;
    }
    cnt++;
    if (cnt % 3 == 0) ar[0] = ar[1] + ar[2] - 1;
    if (cnt % 3 == 1) ar[1] = ar[2] + ar[0] - 1;
    if (cnt % 3 == 2) ar[2] = ar[0] + ar[1] - 1;
  }
  return;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int tc;
  tc = 1;
  while (tc--) {
    solve();
  }
  return 0;
}
