import math x = int(input()) y = int(input()) l = int(input()) c = 0 c += math.ceil(y / l) if x != 0: c += 1 c += math.ceil(abs(x) / l) print(c)