n = int(eval(input()))

a = [int(eval(input())) for i in range(n)]

print((int(max(a)*0.5+sum(a)-max(a))))

n = int(eval(input()))

a = [int(eval(input())) for i in range(n)]



a.sort()

print((sum(a) - int(a[-1]/2)))
n = int(eval(input()))
a = [int(eval(input())) for i in range(n)]
print((int(max(a) * 0.5 + sum(a) - max(a))))

n = int(eval(input()))
a = [int(eval(input())) for i in range(n)]
a.sort()
print((sum(a) - int(a[-1] / 2)))

-print((int(max(a) * 0.5 + sum(a) - max(a)))) +a.sort() +print((sum(a) - int(a[-1] / 2)))