#include <bits/stdc++.h>
using namespace std;
inline int two(int n) { return 1 << n; }
inline int test(int n, int b) { return n & two(b); }
inline void set_bit(int& n, int b) { n |= two(b); }
inline void unset_bit(int& n, int b) { n &= ~two(b); }
inline int last_bit(int n) { return n & (-n); }
inline int ones(int n) {
  int res = 0;
  while (n && ++res) n -= n & (-n);
  return res;
}
int x, y;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> x >> y;
  int a = y, b = y, c = y;
  int ans = 0;
  while (1) {
    if (a >= x and b >= x and c >= x) {
      cout << ans << endl;
      break;
    }
    ans++;
    if (ans % 3 == 1) {
      b = a + c - 1;
    }
    if (ans % 3 == 2) {
      a = b + c - 1;
    }
    if (ans % 3 == 0) {
      c = a + b - 1;
    }
  }
  return 0;
}
