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