#include using namespace std; int main() { double n, a; vector v; cin >> n >> a; int tmp; for (int i = 0; i < n; i++) { cin >> tmp; v.push_back(tmp); } double sum = accumulate(v.begin(), v.end(), 0); double avg = sum / n; if (avg == a) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }