#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int a[3], x, y, cnt;
bool judge() {
  for (int i = 0; i < 3; ++i)
    if (a[i] != x) return false;
  return true;
}
int main() {
  scanf("%d%d", &x, &y);
  a[0] = a[1] = a[2] = y;
  while (!judge()) {
    ++cnt;
    sort(a, a + 3);
    a[0] = min(x, a[1] + a[2] - 1);
  }
  printf("%d\n", cnt);
  return 0;
}
