#include <iostream>
#include <cmath>
using namespace std;
int main() {
double n1,n2;
cin>>n1>>n2;
double y= 2/3.0;
int count=0;
while (y>=(n1/n2*1.0))
{
y=y*y;
count+=1;
}
cout<<count;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCQoJZG91YmxlIG4xLG4yOwoJCgljaW4+Pm4xPj5uMjsKCQoJZG91YmxlIHk9IDIvMy4wOwoJaW50IGNvdW50PTA7CgoJd2hpbGUgKHk+PShuMS9uMioxLjApKQoJeyAKCQl5PXkqeTsKCQljb3VudCs9MTsKCX0KCQoJY291dDw8Y291bnQ7CgoJCQoJcmV0dXJuIDA7Cn0=