X,Y = map(int,input().split()) N = int(input()) A = [0] + list(map(int,input().split())) ANS = True for i in range(N): ANS = ANS and (A[i]*Y <= A[i+1]*X) if ANS: print('YES') else: print('NO')