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