N = int(input()) x = list(map(int,input().split())) x.sort(reverse = True) for _ in range(N-1): a = x.pop() x[0] += a // 2 print(x[0])