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