#include <stdio.h>
void main(){
 int a,b,i;
 for(i!=scanf("%d%d",&a,&b); a!= b||(a!=1 && b!=1); i++)
 a>b? a/=2:b/=2;
printf("%d",i);
}


error C2106: '/=' : left operand must be l-value

아놔 싸부럴