#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; long long s = 0; for (int i = 0; i < n; i++) { int a; cin >> a; s += a; } if (s % n == 0) cout << "Yes" << '\n'; else cout << "No" << '\n'; return 0; }