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