#include <bits/stdc++.h>
using namespace std;
int main() {
  std ::ios ::sync_with_stdio(false);
  int x, y;
  while (cin >> x >> y) {
    x ^= y;
    y ^= x;
    x ^= y;
    int i = 0;
    int a = x;
    int b = 2 * x - 1;
    while (b < y) {
      int t = b;
      b = a + b - 1;
      a = t;
      i++;
    }
    cout << i + 3 << endl;
  }
  return 0;
}
