def main(): N = int(input()) X = tuple(map(int, input().split())) x = sorted(X) for i in range(N - 1): x[N-1] += x[i] // 2 print(x[N-1]) main()