/** * @FileName a.cpp * @Author kanpurin * @Created 2021.07.09 20:16:24 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { int n;cin >> n; ll total = 0; for (int i = 0; i < n; i++) { int a;cin >> a; total += a; } if (total % n == 0) { puts("Yes"); } else { puts("No"); } return 0; }