#include using namespace std; typedef long long LL; int main() { // 1. 入力情報取得. int N; double A; cin >> N >> A; LL X = 0LL; for(int i = 0; i < N; i++){ LL x; cin >> x; X += x; } // 2. 平均値計算. double avg = (X + 0.0) / N; bool ans = false; if(avg == A) ans = true; // 3. 後処理. cout << (ans ? "YES" : "NO") << endl; return 0; }