X, Y = [int(i) for i in input().strip().split(' ')] N = int(input().strip()) A = [int(i) for i in input().strip().split(' ')] for i in range(N - 1): if A[i]/X > A[i+1]/Y: print('NO') exit(0) else: print('YES')