# import module import sys import math import numpy as np x , y , h = map(int,input().split()) x *= 1000 y *= 1000 def tt(z,h,times): while z > h : z = z/2 h = h*2 times = times+1 return times def solve(x,y,h): n = tt(min(x,y),h,0) h = h * (2**n) print(tt(max(x,y),h,n)) if __name__ == "__main__": solve(x,y,h)