k, s = map(int, input().split()) n = int(input()) cr = list(map(int,input().split())) for i in range(n-1): kd = d(str(cr[i])) if kd*s > cr[i+1]*s: print('NO') break else: continue else: print('YES')