N=int(input()) X=list(map(int,input().split())) Y=[x//2 for x in X] print(max([X[i]-Y[i]for i in range(N)])+sum(Y))