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