#include using namespace std; using ll = long long; using ld = long double; using pint = pair; using pll = pair; int main(){ ll N; cin >> N; ll tot = 0; for(int i = 0; i < N; i++){ ll a; cin >> a; tot += a; } cout << (tot % N ? "No": "Yes") << endl; }