#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, x, y;
  cin >> x >> y;
  b = c = a = y;
  int lol[4];
  lol[0] = lol[1] = lol[2] = y;
  int k = 0;
  while (lol[0] != x || lol[1] != x || lol[2] != x) {
    sort(lol, lol + 3);
    lol[0] = min(lol[2] + lol[1] - 1, x);
    k++;
  }
  cout << k << endl;
  return 0;
}
