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