x, y, h = map(int, input().split()) x *= 1000 y *= 1000 ans = 0 while x > h or y > h: ans += 1 if x > y: if y > h: y = (y + 1) // 2 else: x = (x + 1) // 2 else: if x > h: x = (x + 1) // 2 else: y = (y + 1) // 2 h *= 2 print(ans)