i,f=input,1 x,y,N,*A=map(int,(i()+' '+i()+' '+i()).split()) for i,j in zip(A,A[1:]):f*=x*j/y>=i print(('NO','YES')[f])