#pragma GCC optimize("Ofast", "unroll-loops") #include using namespace std; int main(void){ int N; cin >> N; long long sum = 0; for (int _ = 0; _ < N; ++_){ int ai; cin >> ai; sum += ai; } if (sum % N == 0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }