j=input x,y=map(int,j().split()) n=int(j()) t=list(map(int,j().split()))+[10**9] x*=1000 y*=1000 for i in range(n): if t[i]/x*y>t[i+1]: print("NO") exit(0) print("YES")