{ int X, Y, N, A[100]; int i; rd(X,Y,N,A(N)); REP(i,0,N-1){ if(A[i] * Y > A[i+1] * X){ wt("NO"); return 0; } } wt("YES"); }