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