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