x,y=map(int,input().split()) n=int(input()) a=[*map(int,input().split())] ans='YES' for i in range(n): if a[i]*y>a[i+1]*x: ans='NO' break print(ans)