j=input x,y=map(int,j().split()) n=int(j()) t=list(map(int,j().split())) for i in range(n-1): if t[i+1]*x