X, Y = map(int, input().split()) N = int(input()) A = list(map(int, input().split())) ans = 'YES' for i in range(1, N): if A[i] * X < A[i - 1] * Y: ans = 'NO' break print(ans)