#include using namespace std; #define rep(i,n) for (long long i=0;i<(long long)(n);i++) #define all(v) v.begin(),v.end() using ll=long long; using pll=pair; using tll=tuple; const ll INF=(1ll<<60); template void chmin(T &a,T b){ if(a>b){ a=b; } } template void chmax(T &a,T b){ if(a> n >> m >> l; vector a(n); ll k=l; rep(i,n){ cin >> a[i]; k+=a[i]; } vector> dp(n+1,vector(k+1,false)); dp[0][l]=true; rep(i,n){ rep(j,k){ if(dp[i][j]){ dp[i+1][j]=true; dp[i+1][(j+a[i])/2]=true; } } } if(dp[n][m]) cout << "Yes" << endl; else cout << "No" << endl; }