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