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