x,y,h=map(int,input().split()) X,Y=x*1000,y*1000 k=0 while X>h: k+=1 X/=2 h*=2 while Y>h: k+=1 Y/=2 h*=2 print(k)