x, y, h = map(int, input().split()) x, y = min(x, y), max(x, y) ans = 0 for t in [x, y]: while 1000*t>h: t /= 2 h *= 2 ans += 1 print(ans)