#include <bits/stdc++.h>
using namespace std;
int x, y, a, b, c, ans;
int main() {
  cin >> x >> y;
  if (x > y) swap(x, y);
  a = b = c = x;
  while (true) {
    a = b + c - 1;
    ans++;
    if (a >= y) break;
    b = a + c - 1;
    ans++;
    if (b >= y) break;
    c = a + b - 1;
    ans++;
    if (c >= y) break;
  }
  cout << ans + 2;
  return 0;
}
