#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  long long a, b;
  cin >> a >> b;
  long long ans = 0;
  while (a <= b) {
    a *= 3;
    b *= 2;
    ans++;
  }
  cout << ans << endl;
  return 0;
}
