#include <bits/stdc++.h>
int main() {
  int n, m;
  while (~scanf("%d%d", &n, &m)) {
    int p = 0;
    while (n <= m) {
      n = n * 3;
      m = m * 2;
      p++;
    }
    printf("%d\n", p);
  }
  return 0;
}
