from math import * x, y, h = map(int, input().split()) print((ceil(log2(max(x, y)*1000/h))*2+ceil(log2(min(x, y)*1000/h))+3)//4)