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