#include using namespace std; #define REP(i, n) for (int i = 0; i < (int)(n); i++) #define RREP(i, n) for (int i = (int)(n); i >= 0; i--) #define rep(i, a, n) for (int i = (a); i < (int)(n); i++) #define rrep(i, a, n) for (int i = (a); i >= (int)(n); i--) #define ALL(obj) (obj).begin(), (obj).end() #define rALL(obj) (obj).rbegin(), (obj).rend() using ll = long long; using vi = vector; using vii = vector>; using P = pair; template inline bool chmin(T& a, T b) { if ( a > b ) { a = b; return true; } return false; } template inline bool chmax(T& a, T b) { if ( a < b ) { a = b; return true; } return false; } int main() { ll N; cin >> N; vector A(N); for (int i = 0; i < N; i++) cin >> A[i]; bool ans = true; ll res = accumulate(ALL(A),0); if(res%N != 0) ans = false; cout << (ans ? "Yes" : "No") << endl; return 0; }