l=[int(eval(input())) for _ in range(int(eval(input())))]

print((sum(l)-int(max(l)/2)))
n=int(eval(input()))

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

print((p[-1]//2+sum(p[:-1])))
l = [int(eval(input())) for _ in range(int(eval(input())))]
print((sum(l) - int(max(l) / 2)))

n = int(eval(input()))
p = sorted([int(eval(input())) for i in range(n)])
print((p[-1] // 2 + sum(p[:-1])))

-l = [int(eval(input())) for _ in range(int(eval(input())))] -print((sum(l) - int(max(l) / 2))) +n = int(eval(input())) +p = sorted([int(eval(input())) for i in range(n)]) +print((p[-1] // 2 + sum(p[:-1])))