#include <bits/stdc++.h>
using namespace std;
void solve();
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  solve();
  return 0;
}
long long ar[3];
void solve() {
  long long x, y, ans = 0;
  cin >> x >> y;
  ar[0] = ar[1] = ar[2] = y;
  while (ar[0] < x || ar[1] < x || ar[2] < x) {
    sort(ar, ar + 3);
    ar[0] = ar[1] + ar[2] - 1;
    ans++;
  }
  cout << ans;
}
