#include <bits/stdc++.h>
using namespace std;
int main() {
  int bob, limak, y{};
  cin >> limak >> bob;
  while (limak <= bob) {
    bob *= 2;
    limak *= 3;
    y++;
  }
  cout << y;
  return 0;
}
