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