#include <bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	if(a>b){
		cout<<0;
		return 0;
	}
	double ans;
	ans=log((double)b/(double)a)/log(1.50);
	if(a*pow(3,ans) == b*pow(2,ans))
		cout<<(int)(ans+1);
	else
		cout<<int(ans);
}