X, Y = map(int, input().split()) N = input() a = 0 for i in map(int, input().split()): if a * (Y - X) > i * X: print('NO') exit() a += i print('YES')