#include <bits/stdc++.h>
using namespace std;
const long double EPS = 1e-9, PI = acos(-1.);
const int INF = 0x3f3f3f3f, MOD = 1e9 + 7;
const int N = 1e5 + 5;
int n, x, v;
long long sm;
int main() {
  scanf("%d%d", &n, &x);
  for (int i = 0; i < n; ++i) scanf("%d", &v), sm += v;
  printf("%s\n", sm + n - 1 == x ? "YES" : "NO");
  return 0;
}
