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