#include <bits/stdc++.h>
using namespace std;
const int TAM = 300000 + 50;
const long long MOD = 1000000007LL;
int x, y;
int main() {
  scanf("%d%d", &x, &y);
  vector<int> v(3, y);
  int i = 0;
  int r = 0;
  while (v[0] != x || v[1] != x || v[2] != x) {
    switch (i) {
      case 0:
        v[0] = min(x, v[1] + v[2] - 1);
        break;
      case 1:
        v[1] = min(x, v[0] + v[2] - 1);
        break;
      case 2:
        v[2] = min(x, v[1] + v[0] - 1);
        break;
    }
    r++;
    i = (i + 1) % 3;
  }
  cout << r << endl;
  return 0;
}
