x,y,h=map(int,input().split()) x,y,n=min(x,y)*1000,max(x,y)*1000,0 while x>h: x,h,n=x/2,h*2,n+1 while y>h: y,h,n=y/2,h*2,n+1 print(n)