#include <bits/stdc++.h>   using namespace std;   int num[1 << 18];   char str[20];   int main() {     ios::sync_with_stdio(false);     cin.tie(0);     cout.tie(0);     ;     int x, y;     cin >> x >> y;     int a, b, c, ans = 0;     a = b = c = y;     while (a < x) {       swap(a, b);       swap(b, c);       c = a + b - 1;       ans++;     }     cout << ans << endl;     return 0;   }   