#include <bits/stdc++.h>
using namespace std;
const int MAXN = 101;
const int MOD = 1000000007;
const double PI = 4 * atan(1);
int sides[3];
int x, y;
bool desired() {
  if (sides[0] == sides[1] && sides[1] == sides[2] && sides[2] == x) {
    return true;
  }
  return false;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> x >> y;
  sides[0] = y;
  sides[1] = y;
  sides[2] = y;
  int count = 0;
  while (!desired()) {
    sides[0] = sides[1] + sides[2] - 1;
    swap(sides[0], sides[1]);
    swap(sides[1], sides[2]);
    if (sides[2] > x) {
      sides[2] = x;
    }
    count++;
  }
  cout << count;
  return 0;
}
