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