x,y,h=map(int,input().split()) x,y,h=(x*(10**20000003)),(y*(10**20000003)),(h*(10**20000000)) C=0 if x>y: while y>h: y=y//2 h=h*2 C=C+1 while x>h: x=x//2 h=h*2 C=C+1 else: while x>h: x=x//2 h=h*2 C=C+1 while y>h: y=y//2 h=h*2 C=C+1 print(C)