N = int(input()) lsx = list(map(int,input().split())) lsx.sort() for i in range(N-1): lsx[N-1] += lsx[i]//2 print(lsx[-1])