#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, count = 0;
  cin >> a >> b;
  while (a <= b) {
    a = a * 3;
    b = b * 2;
    count++;
  }
  cout << count << endl;
}
