#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <stdio.h>
#include <string.h>
#include <iomanip>
#include <map>
using namespace std;
#define all(v) (v.begin()), (v.end())
void fast_io()
{
ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
}
bool expression(int n, int arr[], long long fsum, long long sum = 0, int i = 0){
if (i == n){
return sum == fsum;
}
return expression(n, arr, fsum, sum+arr[i], i+1) || expression(n, arr, fsum, sum-arr[i], i+1);
}
int main()
{
fast_io();
int n = 0, sum = 0;
cin >> n >> sum;
int arr[n] = {0};
for (int i = 0; i < n; i++){
cin >> arr[i];
}
cout << (expression(n, arr, sum) == 1? "YES" : "NO") << endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8Y21hdGg+CiNpbmNsdWRlIDxzdGRpby5oPgojaW5jbHVkZSA8c3RyaW5nLmg+CiNpbmNsdWRlIDxpb21hbmlwPgojaW5jbHVkZSA8bWFwPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2RlZmluZSBhbGwodikgKHYuYmVnaW4oKSksICh2LmVuZCgpKQoKdm9pZCBmYXN0X2lvKCkKewogICAgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbyhmYWxzZSksIGNpbi50aWUobnVsbHB0ciksIGNvdXQudGllKG51bGxwdHIpOwp9CgoKYm9vbCBleHByZXNzaW9uKGludCBuLCBpbnQgYXJyW10sIGxvbmcgbG9uZyBmc3VtLCBsb25nIGxvbmcgc3VtID0gMCwgaW50IGkgPSAwKXsKICAgIGlmIChpID09IG4pewogICAgICAgIHJldHVybiBzdW0gPT0gZnN1bTsKICAgIH0KICAgIHJldHVybiBleHByZXNzaW9uKG4sIGFyciwgZnN1bSwgc3VtK2FycltpXSwgaSsxKSB8fCBleHByZXNzaW9uKG4sIGFyciwgZnN1bSwgc3VtLWFycltpXSwgaSsxKTsKfQoKaW50IG1haW4oKQp7CiAgICBmYXN0X2lvKCk7CiAgICBpbnQgbiA9IDAsIHN1bSA9IDA7CiAgICBjaW4gPj4gbiA+PiBzdW07CiAgICBpbnQgYXJyW25dID0gezB9OwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspewogICAgICAgIGNpbiA+PiBhcnJbaV07CiAgICB9CiAgICBjb3V0IDw8IChleHByZXNzaW9uKG4sIGFyciwgc3VtKSA9PSAxPyAiWUVTIiA6ICJOTyIpIDw8IGVuZGw7Cn0=