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