#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  scanf("%d%d", &x, &y);
  int res = 0;
  int a, b, c;
  a = b = c = y;
  while (b + c < x) {
    a = b;
    b = c;
    c = a + b - 1;
    res++;
  }
  if (b + c == x)
    res += 4;
  else if (b + c > x)
    res += 3;
  printf("%d\n", res);
  return 0;
}
