#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  long long x, y;
  cin >> x >> y;
  long long a[3] = {y, y, y}, ans = 0;
  do {
    a[0] = a[1] + a[2] - 1;
    a[0] = min(a[0], x);
    sort(a, a + 3);
    ans++;
  } while (a[0] != x or a[1] != x or a[2] != x);
  cout << ans << '\n';
  return 0;
};
