import numpy as np



# 初期値を入力



N = int(eval(input()))



P = []

max = 0

number = 0



for i in range(N):

    p = int(eval(input()))



    if max < p:

        max = p

        number = i



    P.append(p)



# メインプログラム



P[number] = max/2



print((int(sum(P))))





N = int(eval(input()))



P = []

max = 0

number = 0



for i in range(N):

    p = int(eval(input()))



    if max < p:

        max = p

        number = i



    P.append(p)



P[number] = max/2



print((int(sum(P))))

import numpy as np

# 初期値を入力
N = int(eval(input()))
P = []
max = 0
number = 0
for i in range(N):
    p = int(eval(input()))
    if max < p:
        max = p
        number = i
    P.append(p)
# メインプログラム
P[number] = max / 2
print((int(sum(P))))

N = int(eval(input()))
P = []
max = 0
number = 0
for i in range(N):
    p = int(eval(input()))
    if max < p:
        max = p
        number = i
    P.append(p)
P[number] = max / 2
print((int(sum(P))))

-import numpy as np - -# 初期値を入力 -# メインプログラム