a = abs(int(input())) b = abs(int(input())) c = abs(int(input())) count = 0 while c <= b: count = count + 2 c = c + c while c <= a: count = count + 2 c = c + c print(count + 1)