x,y,z = [abs(int(input())) for _ in range(3)] print(-(-(x+y)//z)+(1 if x*y else 0))