#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[4], b, val1, val2, c, ans = 0;
  cin >> val1 >> val2;
  a[0] = a[1] = a[2] = val2;
  while (a[0] < val1 || a[1] < val1 || a[2] < val1) {
    sort(a, a + 3);
    a[0] = a[1] + a[2] - 1;
    ans++;
  }
  printf("%d\n", ans);
  return 0;
}
