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