x,y,h = map(int, input().split()) x *= 1000 y *= 1000 x, y = sorted([x,y]) cnt = 0 while True: if x >= h: x //= 2 h *= 2 cnt += 1 elif y >= h: y //=2 h *= 2 cnt += 1 else: break print(cnt)