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