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