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