n,t,x,y,*d=map(int,open(0).read().split()) d.sort() nt=0 for i,j in zip(d,d[1:]): if i+t