#include <bits/stdc++.h>
using namespace std;
int x, y, a[3], k;
int main() {
  cin >> x >> y;
  swap(x, y);
  a[0] = a[1] = a[2] = x;
  while (a[0] < y || a[1] < y || a[2] < y) {
    if (a[0] > a[1]) swap(a[0], a[1]);
    if (a[1] > a[2]) swap(a[1], a[2]);
    if (a[0] > a[1]) swap(a[0], a[1]);
    a[0] = min(y, a[1] + a[2] - 1);
    k++;
  }
  cout << k;
  return 0;
}
