#include <bits/stdc++.h>
using namespace std;
const int N = 110;
int mod = 1000000007;
int main() {
  int n, t, ans = 0;
  scanf("%d%d", &n, &t);
  for (int i = 1; i <= n; i++) {
    int x;
    scanf("%d", &x);
    ans += x;
  }
  if (n == 1 && ans == t) {
    puts("YES");
  } else if (ans >= t)
    puts("NO");
  else if (ans + n - 1 == t)
    puts("YES");
  else
    puts("NO");
  return 0;
}
