#include <bits/stdc++.h>
using namespace std;
int x, y;
int proc(vector<int> v) {
  sort(v.begin(), v.end());
  if (v[0] == x) return 0;
  v[0] = min(x, v[1] + v[2] - 1);
  return 1 + proc(v);
}
int main() {
  scanf("%d%d", &x, &y);
  vector<int> v(3, y);
  printf("%d\n", proc(v));
}
