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