x,y,h = map(int,input().split()) flag = 0 ans = 0 X = x*1000 Y = y*1000 H = h for i in range(10**5): flag = 0 if X>H and Y>H: flag += 1 if (X-H)>=(Y-H): X /= 2 H *= 2 ans += 1 elif (X-H)H and Y<=H: X /= 2 H *= 2 ans += 1 flag += 1 elif X<=H and Y>H: Y /= 2 H *= 2 ans += 1 flag += 1 if flag == 0: print(ans+1) break else: continue