N = int(input()) A = 0 B = 0 for x in map(int, input().split()): if x > A: B += A // 2 A = x else: B += x // 2 print(A + B)