#include <bits/stdc++.h>
using namespace std;
const int MAX = 3e6 + 7;
const int mod = 998244353;
const double eps = 1e-7;
int ca = 1;
int a[4];
int x, y;
void solve() {
  scanf("%d%d", &x, &y);
  int ans = 0;
  a[0] = a[1] = a[2] = y;
  while (a[0] < x || a[1] < x || a[2] < x) {
    sort(a, a + 3);
    a[0] = a[2] + a[1] - 1;
    ans++;
  }
  cout << ans << endl;
}
int main() {
  int t = 1;
  while (t--) solve();
  return 0;
}
