#include <bits/stdc++.h>
using namespace std;
int main() {
  int l, w;
  cin >> l >> w;
  int c = 0;
  while (l <= w) {
    l = l * 3;
    w = w * 2;
    c++;
    if (l > w) {
      cout << c;
    }
  }
  return 0;
}
