n,x,*a=map(int,open(c:=0).read().split()) ans=0 a=[*map(abs,filter(lambda y:y*x>0,a))][::x//abs(x)] for i in a: if c