from math import ceil X = abs(int(input())) Y = abs(int(input())) L = int(input()) if X==0 or Y==0: print(ceil((X+Y)/L)) else: print(ceil((X+Y)/L)+1)