from itertools import product x,y,h = map(int, input().split()) dp = 0 for pro in product((0, 1), repeat=18):#0:横を折る、1:縦を折る a = x*1000 b = y*1000 c = h ans = 0 for i in range(18): if pro[i]: if a >= c: a /=2 c *=2 ans+=1 else: break else: if b >= c: b /=2 c *=2 ans+=1 else: break dp = max(dp, ans) print(dp)