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