X,Y = map(int,input().split()) N = int(input()) lsA = list(map(int,input().split())) for i in range(N-1): if Y*lsA[i] > X*lsA[i+1]: print('NO') exit() print('YES')