import numpy as np



N = int(eval(input()))

L = np.array(list(map(int,input().split())))



L[::-1].sort()

if L[0] < L[1:].sum():

    print('Yes')

else:

    print('No')
def inpl(): return list(map(int,input().split()))

N = int(eval(input()))

L = sorted(inpl())

if L[-1] < sum(L[:-1]):

  print('Yes')

else:

  print('No')
import numpy as np

N = int(eval(input()))
L = np.array(list(map(int, input().split())))
L[::-1].sort()
if L[0] < L[1:].sum():
    print("Yes")
else:
    print("No")

def inpl():
    return list(map(int, input().split()))


N = int(eval(input()))
L = sorted(inpl())
if L[-1] < sum(L[:-1]):
    print("Yes")
else:
    print("No")

-import numpy as np +def inpl(): +    return list(map(int, input().split())) + -L = np.array(list(map(int, input().split()))) -L[::-1].sort() -if L[0] < L[1:].sum(): +L = sorted(inpl()) +if L[-1] < sum(L[:-1]):