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