#include using namespace std; using ll = long long; int main(){ ll N, S=0; cin >> N; assert(2 <= N && N <= 5e5); vector A(N), B(N); for (int i=0; i> A[i]; assert(abs(A[i]) <= 1e9); S += A[i]; } cout << (S % N == 0 ? "Yes" : "No") << endl; return 0; }