#include <bits/stdc++.h>   using namespace std;   int main() {     cin.sync_with_stdio(0);     cin.tie(0);     cin.exceptions(cin.failbit);     int n;     cin >> n;     vector<long long> a(n);     long long s = 0;     for (int i = 0; i < n; i++) {       cin >> a[i];       s += a[i];     }     sort(a.begin(), a.end());     reverse(a.begin(), a.end());     if (s % 2 == 1) {       cout <<  NO  << endl;       return 0;     }     if (a[0] <= s / 2) {       cout <<  YES  << endl;     } else {       cout <<  NO  << endl;     }     return 0;   }   