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