#include using namespace std; int n; long long a, s = 0; int main() { cin >> n; for (int i = 0; i < n; i++) { cin >> a; s += a; } if(s % n == 0) cout << "Yes" << endl; else cout << "No" << endl; }