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