#include using namespace std; using ll = long long; using P = pair; #define rep(i, a, b) for(ll i = a; i < b; ++i) #define rrep(i, a, b) for(ll i = a; i >= b; --i) constexpr ll inf = 4e18; struct SetupIO { SetupIO() { ios::sync_with_stdio(0); cin.tie(0); cout << fixed << setprecision(30); } } setup_io; int main(void) { ll n; cin >> n; vector a(n); vector pos, neg; ll ps = 0, ns = 0; rep(i, 0, n) { cin >> a[i]; if(a[i] >= 0) { pos.push_back(a[i]); ps += a[i]; } else { neg.push_back(a[i]); ns += a[i]; } } ranges::sort(pos); ranges::sort(neg); if(abs(ps) >= abs(ns)) { ps -= pos.back(); if(abs(ps) <= abs(ns)) { cout << "Yes" << '\n'; } else { cout << "No" << '\n'; } } else { ns -= neg[0]; if(abs(ps) >= abs(ns)) { cout << "Yes" << '\n'; } else { cout << "No" << '\n'; } } }