#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:36777216")
using namespace std;
const int N = 100001;
int main() {
  int a, b, c, x, y;
  cin >> x >> y;
  a = b = c = y;
  int ans = 0;
  while (1) {
    ans++;
    c = a + b - 1;
    y = c;
    c = b;
    b = a;
    a = y;
    if (c >= x) break;
  }
  cout << ans;
}
