from bisect import*;I=lambda:[*map(int,input().split())];n,m=I();h,d=I();c=[0]+sorted(I())+[10**18];s=I();f=lambda x:sum(~-i//(d+x)for i in s)