x,y=map(int,input().split()) n=int(input()) A=list(map(int,input().split())) for i in range(n-1): if y*A[i]>x*A[i+1]: print("NO") exit() print("YES")