N = int(input()) X = list(map(int,input().split())) X.sort() tmp = X[-1] for x in X[:-1]: tmp = x//2 + tmp print(tmp)