n,m,x=map(int,input().split()) n*=1000 m*=1000 cnt=0 def cal(n,m,x): t=min(n,m) t2=max(n,m) if t > x: return t2 , t/2 , x*2 elif t2 > x: return t2/2 , m , x*2 else: return 0 , 0 , 1 for i in range(1000): if n <= x and m <= x: break cnt+=1 n,m,x=cal(n,m,x) print(cnt)