#include <bits/stdc++.h>
int main() {
  int a, b, res = 0;
  std::cin >> a >> b;
  while (true) {
    res += 1;
    a *= 3;
    b *= 2;
    if (a > b) {
      std::cout << res;
      return 0;
    }
  }
}
