#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //eolibraries #define lnf 3999999999999999999 #define inf 999999999 #define PI 3.14159265359 #define endl "\n" #define fi first #define se second #define pb push_back #define eb emplace_back #define ll long long #define all(c) (c).begin(),(c).end() #define sz(c) (ll)(c).size() #define mkp(a,b) make_pair(a,b) #define make_unique(a) sort(all(a)),a.erase(unique(all(a)),a.end()) #define rsz(a,n) a.resize(n) #define pii pair #define rep(i,n) for(ll i = 0 ; i < n ; i++) #define drep(i,n) for(ll i = n-1 ; i >= 0 ; i--) #define crep(i,x,n) for(ll i = x ; i < n ; i++) #define vi vector #define vec(...) vector<__VA_ARGS__> #define rsz(a,n) a.resize(n) #define rszv(a,n,v) a.resize(n,v) #define fcin ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0); //eodefine using namespace std; const ll max_n = 103002; ll n,k; vi a; int main(){ fcin; cin>>n>>k; rep(i,n) { ll x; cin>>x; a.pb(x); } set sta,stb; sta.insert(0); rep(i,(n+1)/2) { set nesta = sta; for(auto x : sta) { nesta.insert(x+a[i]); nesta.insert(x-a[i]); } sta = nesta; } stb.insert(0); crep(i,(n+1)/2,n) { set nestb = stb; for(auto x : stb) { nestb.insert(x+a[i]); nestb.insert(x-a[i]); } stb=nestb; } function yp = [&]() { cout<<"Yes\n"; exit(0); return; }; for(auto x : stb) { // cout<