#include <bits/stdc++.h>
using namespace std;
int ara[5];
int main() {
  int x, y, z, cnt, res;
  while (cin >> x >> res) {
    cnt = 0;
    ara[1] = res;
    ara[2] = res;
    ara[3] = res;
    while (ara[1] < x) {
      cnt++;
      ara[1] = ara[2] + ara[3] - 1;
      sort(ara + 1, ara + 4);
    }
    cout << cnt << endl;
  }
  return 0;
}
