def main():
    import sys
    input = sys.stdin.readline

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


if __name__ == '__main__':
    main()