x, y = [int(i) for i in input().strip().split(" ")]
N = int(input())
A = [int(i) for i in input().strip().split(" ")]

lost = False
for i in range(N-1, 0, -1):
    if x * A[i] < A[i-1] * y:
        lost = True
        break

if lost:
    print("NO")
else:
    print("YES")