#include #include #include #include #include #include #include #include #include #include using ll = long long; using namespace std; int main(){ ll n, cnt = 0; cin >> n; for (int i = 0; i < n; i++){ ll t; cin >> t; cnt += t; } cout << ((cnt % n == 0) ? "Yes" : "No") << endl; }