if x==0 : if y==0: print(0) elif y>0: print(math.ceil(y/z)) else: print(math.ceil(abs(y)/z)+2) else: if y>=0: print(math.ceil(y/z)+math.ceil(abs(x)/z)+1) else: print(math.ceil(abs(y)/z)+math.ceil(abs(x)/z)+2)