i,f=input,1 x,y,N,*A=map(int,(i()+' '+i()+' '+i()).split()) for i in range(N-1): if x*A[i+1]/y