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