#include <bits/stdc++.h>
using namespace std;
long long n, avg, sum;
set<int> ap;
void prepro() {}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.precision(17);
  int x, y, ans = 0;
  cin >> x >> y;
  vector<int> a(3, y);
  while (a[0] < x) {
    a[0] = min(x, a[1] + a[2] - 1), ans++;
    sort(a.begin(), a.end());
  }
  cout << ans;
  return 0;
}
