#include <bits/stdc++.h>
using namespace std;
const int N = (int)1e5 + 10;
const int inf = (int)1e9 + 10;
int solve(int a, int b, int c, int A) {
  int mn = min(a, min(b, c));
  if (mn == A) return 0;
  if (mn == a)
    return solve(min(b + c - 1, A), b, c, A) + 1;
  else if (mn == b)
    return solve(a, min(a + c - 1, A), c, A) + 1;
  else
    return solve(a, b, min(a + b - 1, A), A) + 1;
}
int main() {
  ios_base::sync_with_stdio(false);
  int a, b;
  cin >> a >> b;
  cout << solve(b, b, b, a);
  return 0;
}
