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