#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  int x[3];
  while (~scanf("%d%d", &a, &b)) {
    x[0] = x[1] = x[2] = b;
    c = 0;
    while (x[0] <= a || x[1] <= a || x[2] <= a) {
      sort(x, x + 3);
      x[0] = x[1] + x[2] - 1;
      c++;
    }
    printf("%d\n", c);
  }
}
