#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e9 + 10;
const long long MOD = 1e9 + 7;
const long long MAXN = 1e6 + 10;
const long long LOG = 20;
const long long P = 239017;
const long long BINF = 1e18 + 10;
const long long LINF = LLONG_MAX;
const long double EPS = 1e-6;
const long double PI = acos(-1);
long long n, x, a, sum;
inline void source() {
  cin >> n >> x;
  for (register long long i(1); i <= n; i++) {
    cin >> a;
    sum += a;
  }
  x - n + 1 == sum ? cout << "YES" : cout << "NO";
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  srand(time(0));
  source();
  return 0;
}
