def origami(x, y, h): x = x * 1000 y = y * 1000 cnt = 0 while (x > h) or (y > h): if x >= y: if y > h: y = y / 2 else: x = x / 2 else: if x > h: x = x / 2 else: y = y / 2 h = h * 2 cnt += 1 return cnt def main(): x, y, h = map(int, input().split()) print(origami(x, y, h)) if __name__ == '__main__': main()