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