#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[3], x, y, count = 0;
  scanf("%d %d", &x, &y);
  a[0] = a[1] = a[2] = y;
  while (true) {
    sort(a, a + 3);
    if (a[0] == x && a[1] == x && a[2] == x) break;
    a[0] = a[1] + a[2] - 1;
    if (a[0] > x) a[0] = x;
    count++;
  }
  cout << count << endl;
  return 0;
}
