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