#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);
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCl7CglpbnQgYSxiOwoJY2luPj5hPj5iOwoJaWYoYT5iKXsKCQljb3V0PDwwOwoJCXJldHVybiAwOwoJfQoJZG91YmxlIGFuczsKCWFucz1sb2coKGRvdWJsZSliLyhkb3VibGUpYSkvbG9nKDEuNTApOwoJaWYoYSpwb3coMyxhbnMpID09IGIqcG93KDIsYW5zKSkKCQljb3V0PDwoaW50KShhbnMrMSk7CgllbHNlCgkJY291dDw8aW50KGFucyk7Cn0=