#include <bits/stdc++.h>
using namespace std;
struct cmp {
  bool operator()(pair<int, int> a, pair<int, int> b) {
    return a.second > b.second;
  }
};
long long modpow(long long base, long long exp, long long mod) {
  base %= mod;
  long long result = 1;
  while (exp > 0) {
    if (exp & 1) result = (result * base) % mod;
    base = (base * base) % mod;
    exp >>= 1;
  }
  return result;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long x, y, ans = 0;
  cin >> x >> y;
  if (y > (x - y)) {
    ans = 3;
    cout << ans << endl;
  } else {
    long long a, b, c;
    a = y, b = y, c = y;
    while (c < x) {
      a = b + c - 1;
      long long t = a;
      a = b;
      b = c;
      c = t;
      ans++;
    }
    cout << ans + 2 << endl;
  }
  return 0;
}
