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