#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int a, b;
  cin >> a >> b;
  int t[3] = {b, b, b};
  int ans = 0;
  while (t[0] != a || t[1] != a || t[2] != a) {
    ans++;
    sort(t, t + 3);
    t[0] = min(a, t[2] + t[1] - 1);
  }
  cout << ans << endl;
}
