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