#include <bits/stdc++.h>
using namespace std;
int a[4], k, ans = 0;
int main() {
  scanf("%d%d", &k, &a[1]);
  a[2] = a[3] = a[1];
  if (a[1] + a[2] > k) {
    printf("3");
    return 0;
  }
  while (1) {
    sort(a + 1, a + 4);
    if (a[1] + a[2] > k)
      break;
    else {
      ans++;
      a[1] = min(a[3] + a[2] - 1, k);
    }
  }
  printf("%d", ans + 2);
  return 0;
}
