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