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