#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
const int inf = 1e9;
const int mod = 1e9 + 7;
const long long INF = 1e18;
int x, y, a, b, c, res;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> x >> y;
  if (x < y + y) {
    return cout << 3, 0;
  }
  if (x == y + y) {
    return cout << 4, 0;
  }
  a = b = c = y;
  while (1) {
    if (a == b && a == c && a == x) break;
    a = min(x, b + c - 1);
    ++res;
    if (a == b && a == c && a == x) break;
    b = min(x, a + c - 1);
    ++res;
    if (a == b && a == c && a == x) break;
    c = min(x, a + b - 1);
    ++res;
  }
  cout << res;
  return 0;
}
