#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  cout << fixed << setprecision(9);
  long long int a, b, count;
  cin >> a >> b;
  count = 0;
  while (!(a > b)) {
    a *= 3;
    b *= 2;
    count++;
  }
  cout << count << endl;
  return 0;
}
