#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, x = 0, y = 0, count = 0;
  cin >> a >> b;
  while (1) {
    x = (3 * a);
    y = (2 * b);
    count++;
    if (x > y) break;
    a = x;
    b = y;
  }
  cout << count;
  return 0;
}
