N = int(input()) a = sorted(map(int, input().split())) print(sum(n//2 for n in a[:-1])+a[-1])