input() L = list(map(int, input().split())) print(sum([x//2 for x in L]) - (-max(L)//2))