#include <bits/stdc++.h>
int main() {
  long x, y, a, b, c, tmp, count = 0;
  scanf("%ld%ld", &x, &y);
  a = y;
  b = y;
  c = y;
  while (c != x) {
    tmp = a + b - 1;
    if (tmp > x) tmp = x;
    c = b;
    b = a;
    a = tmp;
    count++;
  }
  printf("%ld\n", count);
  return 0;
}
