#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, i, j;
  long long ans = 0;
  cin >> x >> y;
  swap(x, y);
  multiset<int> second;
  second.insert(x);
  second.insert(x);
  second.insert(x);
  while (second.size() > 0) {
    int i = 0, a[5];
    for (set<int>::iterator it = second.begin(); it != second.end(); it++)
      a[i++] = (*it);
    for (; i < 3; i++) a[i] = y;
    int dec = a[1] + a[2] - 1;
    ans++;
    second.erase(second.begin());
    if (dec < y) second.insert(dec);
  }
  printf("%lld\n", ans);
  return 0;
}
