speed=map(int, raw_input().split()) n=int(raw_input()) A=map(int, raw_input().split()) sA=float(speed[0])*1000/3600 sB=float(speed[1])*1000/3600 for a in range(n-1): if float(A[a+1])/sB < float(A[a])/sA: print 'NO' break else: print 'YES'