ll@N,@M,@X[M],@C[N][M+1],b=0,t;VVI D(N,VI(M));VI E(M);mapI;rep(i,N){rep(j,M)D[i][j]=C[i][j]*C[i][M];I[D[i]]++;}rep(i,N){if(C[i][M]>99)b|=AND[j,0,M](C[i][j]==X[j]);else{t=100-C[i][M];if(!OR[j,0,M]((E[j]=1d4*X[j]-100*D[i][j])%t)){rep(j,M)E[j]/=t;b|=I[E]>(D[i]==E);}}}wt(b?"Yes":"No");