x, y = map(int, input().split()) n = int(input()) a = list(map(int, input().split())) ok = True for i in range(n - 1): if a[i + 1] * x < a[i] * y: ok = False if ok: print('YES') else: print('NO')