#define _GLIBCXX_DEBUG #include using namespace std; int main() { int N; cin >> N; long long A = 0; for(int i = 0; i < N; i++){ int AI; cin >> AI; A += AI; } if(A%N == 0) cout << "Yes" << endl; else cout << "No" << endl; }