#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1E5 + 5;
const int MOD = 1E9 + 7;
const int MAXVALUE = 1E9 + 10;
int x, y, ret = 0;
int main() {
  cin >> x >> y;
  int a[5];
  a[0] = a[1] = a[2] = y;
  while (true) {
    if (a[0] == a[1] && a[1] == a[2] && a[2] == x) break;
    sort(a, a + 3);
    a[0] = max(a[2] + a[1] - 1, y);
    if (a[0] > x) a[0] = x;
    ret++;
  }
  cout << ret << endl;
  return 0;
}
