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