import numpy as np

n = int(eval(input()))

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

arg_m = np.argmax(arr)

total = (arr.pop(arg_m)//2) + sum(arr)

print(total)

N = int(eval(input()))

A = sorted([int(eval(input())) for _ in range(N)])

ans = A[-1]//2 + sum(A[:-1])

print(ans)
import numpy as np

n = int(eval(input()))
arr = [int(eval(input())) for _ in range(n)]
arg_m = np.argmax(arr)
total = (arr.pop(arg_m) // 2) + sum(arr)
print(total)

N = int(eval(input()))
A = sorted([int(eval(input())) for _ in range(N)])
ans = A[-1] // 2 + sum(A[:-1])
print(ans)

-import numpy as np - -n = int(eval(input())) -arr = [int(eval(input())) for _ in range(n)] -arg_m = np.argmax(arr) -total = (arr.pop(arg_m) // 2) + sum(arr) -print(total) +N = int(eval(input())) +A = sorted([int(eval(input())) for _ in range(N)]) +ans = A[-1] // 2 + sum(A[:-1]) +print(ans)