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