import sys input=sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) def main(): mod=10**9+7 x,y,h=MI() x*=1000 y*=1000 ans=0 for _ in range(30): if min(x,y)>h: if xh: x=x/2 h=h*2 ans+=1 else: if y>h: y=y/2 h=h*2 ans+=1 elif x>h: x=x/2 h=h*2 ans+=1 elif y>h: y=y/2 h=h*2 ans+=1 print(ans) main()