x,y,h = gets.split.map(&:to_i) x *= 1000 y *= 1000 ans = 0 x_big = true while [x,y].max > h do if x < y x_big = false end if x_big if y > h y /= 2.0 else x /= 2.0 end else if x > h x /= 2.0 else y /= 2.0 end end h *= 2 ans += 1 end p ans