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