import numpy as np

N = int(eval(input()))

p = np.array([ int(eval(input())) for i in range(N)])

p.sort()

print((p.sum() - p[-1]//2))
N = int(eval(input()))

p = []

for _ in range(N):

    p.append(int(eval(input())))

print((sum(p) - max(p)//2))
import numpy as np

N = int(eval(input()))
p = np.array([int(eval(input())) for i in range(N)])
p.sort()
print((p.sum() - p[-1] // 2))

N = int(eval(input()))
p = []
for _ in range(N):
    p.append(int(eval(input())))
print((sum(p) - max(p) // 2))

-import numpy as np - -p = np.array([int(eval(input())) for i in range(N)]) -p.sort() -print((p.sum() - p[-1] // 2)) +p = [] +for _ in range(N): +    p.append(int(eval(input()))) +print((sum(p) - max(p) // 2))