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