#include <bits/stdc++.h>
using namespace std;
int main() {
  int l, b, i = 0;
  cin >> l >> b;
  bool d = true;
  while (d) {
    i++;
    l = 3 * l;
    b = 2 * b;
    if (l > b || (l == 1 && b == 1)) {
      d = false;
    }
  }
  cout << i;
  return 0;
}
