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]/x*y>t[i+1]: print("NO") exit(0) print("YES")