#include using namespace std; int main() { int n; double a; cin >> n >> a; int x; double sum = 0; for(int i = 0; i < n; i++){ cin >> x; sum += x; } if(a == sum / n) cout << "YES" << endl; else cout << "NO" << endl; return 0; }