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