import sys input = sys.stdin.readline def linput(): return list(map(float,input().split())) def gcd(a: int, b: int): while b: a, b = b, a%b return a def lcm(a: int, b: int): return a * b // gcd(a, b) def main(): X,Y,H = linput() X,Y = X*1000, Y*1000 res = 0 cnt = 0 while X>H or Y>H: X,Y = sorted([X,Y]) if X>H: X /= 2 elif Y>H: Y /= 2 else: break H *= 2 res += 1 cnt += 1 #print(res,cnt,X,Y,H) if cnt>9999: break print(res) if __name__ == "__main__": main()