#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define ll long long
int cmp(const void *a, const void *b){
int *p1 = (int*)a;
int *p2 = (int*)b;
return *p2 - *p1;
}
void solve(){
int n; scanf("%d" , &n);
int a[n];
for(int i=0; i <n; i++){
scanf("%d", a+i);
}
qsort(a, n, sizeof(int), cmp); // sap xep tu lon den be
int s = 0; // bien s luu tong can nang hien tai
for(int i=n-1 ; i >= 0; i--){
if(a[i] < s){
printf("No");
return;
}
s += a[i];
}
printf("YES");
}
int main(){
int typetest = 0;
if(typetest){
int t; scanf("%d", &t);
while(t--){
solve();
}
}else solve();
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2RlZmluZSBsbCBsb25nIGxvbmcKCmludCBjbXAoY29uc3Qgdm9pZCAqYSwgY29uc3Qgdm9pZCAqYil7CiAgICBpbnQgKnAxID0gKGludCopYTsKICAgIGludCAqcDIgPSAoaW50KiliOwogICAgcmV0dXJuICpwMiAtICpwMTsKfQoKdm9pZCBzb2x2ZSgpewogICAgaW50IG47IHNjYW5mKCIlZCIgLCAmbik7CiAgICBpbnQgYVtuXTsKICAgIGZvcihpbnQgaT0wOyBpIDxuOyBpKyspewogICAgICAgIHNjYW5mKCIlZCIsIGEraSk7CiAgICB9CiAgICBxc29ydChhLCBuLCBzaXplb2YoaW50KSwgY21wKTsgIC8vIHNhcCB4ZXAgdHUgbG9uIGRlbiBiZQogICAgaW50IHMgPSAwOyAgLy8gYmllbiBzIGx1dSB0b25nIGNhbiBuYW5nIGhpZW4gdGFpCiAgICBmb3IoaW50IGk9bi0xIDsgaSA+PSAwOyBpLS0pewogICAgICAgIGlmKGFbaV0gPCBzKXsKICAgICAgICAgICAgcHJpbnRmKCJObyIpOwogICAgICAgICAgICByZXR1cm47CiAgICAgICAgfQogICAgICAgIHMgKz0gYVtpXTsKICAgIH0KICAgIHByaW50ZigiWUVTIik7Cn0KCmludCBtYWluKCl7CiAgICBpbnQgdHlwZXRlc3QgPSAwOwogICAgaWYodHlwZXRlc3QpewogICAgICAgIGludCB0OyBzY2FuZigiJWQiLCAmdCk7CiAgICAgICAgd2hpbGUodC0tKXsKICAgICAgICAgICAgc29sdmUoKTsKICAgICAgICB9CiAgICB9ZWxzZSBzb2x2ZSgpOwp9