n = int(input()) l = list(map(int, input().split())) l = sorted(l) x = l[-1] for i in range(n-1): x += l[i]//2 print(x)