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