#include using namespace std; using ll=long long; constexpr int MOD=998244353; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N,M; cin>>N>>M; arrayX; for(int i=0;i<10;i++)X[i]=0; for(int i=0;i>X[i]; vector> V(N); vector T(N,0); vector,int>> vs; for(int i=0;i>V[i][j]; if(V[i]==X){ cout<<"Yes\n"; return 0; } cin>>T[i]; for(auto &j:V[i])j*=T[i]; if(T[i]==100)continue; array need; bool ok=1; for(int j=0;j<10;j++){ int x=10000*X[j]-100*V[i][j]; if(x%(100-T[i])!=0)ok=0; need[j]=x/(100-T[i]); } if(ok)vs.push_back(make_pair(need,i)); } sort(vs.begin(),vs.end()); for(int i=0;i