x, y, t = map(int, input().split()) x *= 1000 y *= 1000 if x > y: x, y = y, x cnt = 0 while x > t: x /= 2 t *= 2 cnt += 1 while y > t: y /= 2 t *= 2 cnt += 1 print(cnt)