X, Y = map(int, input().split()) N = int(input()) A = list(map(int, input().split())) yes = True for i in range(N - 1): if A[i] * Y > A[i + 1] * X: yes = False break print('YES' if yes else 'NO')