#include <bits/stdc++.h>
int main() {
  int a, b, count = 0;
  scanf("%d %d", &a, &b);
  while (a < b) {
    a *= 3;
    b *= 2;
    count++;
  }
  if (a == b) {
    count++;
  }
  printf("%d", count);
  return 0;
}
