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