n,k,x,y=map(int,input().split()) a=[int(i)-1 for i in input().split()] idx=-1 if sum(a)