#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  scanf("%d%d", &x, &y);
  int arr[3];
  for (int i = 0; i < 3; i++) arr[i] = y;
  int cnt = 0;
  while (true) {
    int sum = arr[1] + arr[2];
    if (sum - 1 >= x)
      arr[0] = x;
    else
      arr[0] = sum - 1;
    sort(arr, arr + 3);
    cnt++;
    if (arr[0] == x && arr[1] == x && arr[2] == x) break;
  }
  printf("%d", cnt);
  return 0;
}
