#include #include #include using namespace std; using ll = long long; #include int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n,m; cin>>n>>m; vector x(m); for(int i = 0;i>x[i]; vector> c(n,vector(m)); vector t(n); for(int i = 0;i>c[i][j]; cin>>t[i]; } map,int> memo; vector> w(n); for(int i = 0;i use(m); for(int j = 0;j want(m); if(t[i]==100){ if(x==c[i]){ cout<<"Yes\n"; return 0; } continue; } bool fn = true; for(int j = 0;j=2) ok = 1; }else{ if(memo[want]>=1) ok = 1; } if(ok) { cout<<"Yes\n"; return 0; } } cout<<"No\n"; return 0; }