N = int(eval(input()))

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

tot = sum(L)

lmax = max(L)

tot -= lmax

if tot>lmax:

    print("Yes")

else:

    print("No")
N = int(eval(input()))

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

lmax = max(L)

ltot = sum(L)

if ltot>2*lmax:

    print("Yes")

else:

    print("No")
N = int(eval(input()))
L = list(map(int, input().split()))
tot = sum(L)
lmax = max(L)
tot -= lmax
if tot > lmax:
    print("Yes")
else:
    print("No")

N = int(eval(input()))
L = list(map(int, input().split()))
lmax = max(L)
ltot = sum(L)
if ltot > 2 * lmax:
    print("Yes")
else:
    print("No")

-tot = sum(L) -tot -= lmax -if tot > lmax: +ltot = sum(L) +if ltot > 2 * lmax: