s=str(input()) s2=str(input()) s3=str(input()) NM=s.split() ch=s2.split() indx=s3.split() ok=[] p=0 for j in range(int(NM[0])): if p