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