#include <bits/stdc++.h>
using namespace std;
const int INF = 2034567891;
const long long int INF64 = 1234567890123456789ll;
int dx[] = {1, -1, 0, 0, 1, -1, -1, 1};
int dy[] = {0, 0, 1, -1, -1, -1, 1, 1};
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  ;
  long long int x, y, a, b, c;
  cin >> x >> y;
  if (2 * y > x) {
    cout << "3";
    return 0;
  }
  if (2 * y == x) {
    cout << "4";
    return 0;
  }
  a = y, b = y, c = y;
  long long int ans = 0;
  while (c < x) {
    c = b;
    b = a;
    a = b + c - 1;
    ans++;
  }
  cout << ans;
}
