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