import sys x,y,h = map(int, sys.stdin.readline().strip().split()) count = 0 x = x * 100 * 10 y = y * 100 * 10 def yoko(): global x,h,count x = int(x / 2) h = h * 2 count += 1 def tate(): global y,h,count y = int(y / 2) h = h * 2 count += 1 while True: if x >= 2 and x > h: yoko() elif y >= 2 and y > h: tate() else: break print(count)