n = int(eval(input()))

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

l = sorted(l)

print(( 'Yes' if l[-1]<sum(l[:-1]) else 'No' ))
n = int(eval(input()))

l = sorted(list(map(int,input().split())),reverse=True)

if l[0]<sum(l[1:]):

    print('Yes')

else:

    print('No')
n = int(eval(input()))
l = list(map(int, input().split()))
l = sorted(l)
print(("Yes" if l[-1] < sum(l[:-1]) else "No"))

n = int(eval(input()))
l = sorted(list(map(int, input().split())), reverse=True)
if l[0] < sum(l[1:]):
    print("Yes")
else:
    print("No")

-l = list(map(int, input().split())) -l = sorted(l) -print(("Yes" if l[-1] < sum(l[:-1]) else "No")) +l = sorted(list(map(int, input().split())), reverse=True) +if l[0] < sum(l[1:]): +    print("Yes") +else: +    print("No")