x,y,h=map(int,input().split()) h/=1000 ans=0 while(True): if(x>h): x/=2 h*=2 ans+=1 elif(y>h): y/=2 h*=2 ans+=1 else: break print(ans)