#include <bits/stdc++.h>
using namespace std;
class my_compare {
 public:
  bool operator()(pair<int, int> &p1, pair<int, int> &p2) {
    return p1.second < p2.second;
  }
};
void solve() {
  int a, b;
  cin >> a >> b;
  int i{0};
  while (a <= b) {
    a *= 3;
    b *= 2;
    i++;
  }
  cout << i << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  bool test_case{0}, fileop{0};
  if (fileop) {
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
  }
  int t;
  if (test_case) {
    cin >> t;
    for (int i = 0; i < t; i++) {
      solve();
    }
  } else
    solve();
}
