import sys sys.setrecursionlimit(10 ** 8) input = sys.stdin.readline def main(): X, Y, H = [int(x) for x in input().split()] X *= 1000 Y *= 1000 ans = 0 while 1: if X < H > Y: break if X > H: X //= 2 ans += 1 H *= 2 continue if Y > H: Y //= 2 ans += 1 H *= 2 continue print(ans) if __name__ == '__main__': main()