#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include #include using namespace std; using namespace atcoder; #define rep(i,m,n,k) for (int i = (int)(m); i < (int)(n); i += (int)(k)) #define rrep(i,m,n,k) for (int i = (int)(m); i > (int)(n); i += (int)(k)) #define all(x) x.begin(),x.end() #define ll long long #define list(T,A,N) vector A(N);for(int i=0;i<(int)(N);i++){cin >> A[i];} template bool chmin(T& a, T b){if(a > b){a = b; return true;} return false;} template bool chmax(T& a, T b){if(a < b){a = b; return true;} return false;} // #define int long long int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); ll N; cin >> N ; list(ll,A,N); ll sum = 0; rep(i,0,N,1){ sum += A[i]; } if(sum%N==0){ cout << "Yes" << "\n"; } else{ cout << "No" << "\n"; } return 0; }