n = int(eval(input()))

l_list = [int(i) for i in input().split()]

long = max(l_list)

others = sum(l_list) - int

if (others > int):

    print("Yes")

else:

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

l_list = [int(i) for i in input().split()]

max_l = max(l_list)

sum_l = sum(l_list) - max_l*2

if sum_l > 0:

    print("Yes")

else:

    print("No")
n = int(eval(input()))
l_list = [int(i) for i in input().split()]
long = max(l_list)
others = sum(l_list) - int
if others > int:
    print("Yes")
else:
    print("No")

n = int(eval(input()))
l_list = [int(i) for i in input().split()]
max_l = max(l_list)
sum_l = sum(l_list) - max_l * 2
if sum_l > 0:
    print("Yes")
else:
    print("No")

-long = max(l_list) -others = sum(l_list) - int -if others > int: +max_l = max(l_list) +sum_l = sum(l_list) - max_l * 2 +if sum_l > 0: