x,y,l=int(input()),int(input()),int(input()) n=round(y/l+0.5)+round(math.fabs(x)/l+0.5) print(n if y>=0 else n+1)