x, y, h = map(int, input().split()) print(((-(-max(x, y)*1000//h)-1).bit_length()+((-(-min(x, y)*1000//h)-1).bit_length()+1)//2+1)//2)