#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  cin >> x >> y;
  int a[3];
  int ans = 0;
  int n = 3;
  for (int i = 0; i < n; i++) a[i] = y;
  while (1) {
    sort(a, a + n);
    if (a[0] == x) break;
    ans++;
    a[0] = min(a[1] + a[2] - 1, x);
  }
  cout << ans << endl;
  return 0;
}
