#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int x, y, ans = 0;
  cin >> x >> y;
  int a[3] = {y, y, y};
  while (a[0] != x || a[1] != x || a[2] != x) {
    sort(a, a + 3);
    int sum = a[1] + a[2];
    if (sum - 1 > x)
      a[0] = x;
    else
      a[0] = sum - 1;
    ans++;
  }
  cout << ans << '\n';
}
