n,*p=list(map(int,open(0).read().split()));print((sum(p)-max(p)//2))
_,*p=list(map(int,open(0).readlines()));print((sum(p)-max(p)//2))
n, *p = list(map(int, open(0).read().split()))
print((sum(p) - max(p) // 2))

_, *p = list(map(int, open(0).readlines()))
print((sum(p) - max(p) // 2))

-n, *p = list(map(int, open(0).read().split())) +_, *p = list(map(int, open(0).readlines()))