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