x,y,h=map(int,input().split()) if x < y: a = x*1000 b = y*1000 c = h else: a = y*1000 b = x*1000 c = h ans = 0 while a >= h: a /= 2 h *= 2 ans += 1 while b >= h: b /= 2 h *= 2 ans += 1 print(ans)