x,y,h=map(int,input().split()) x*=1000 y*=1000 cnt=0 while x>h or y>h: if x>=y and y>h: y/=2 elif y>x and x>h: x/=2 elif x>=y and y<=h: x/=2 else: y/=2 h*=2 cnt+=1 print(cnt)