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