s = gets.chomp!.to_i
p = Array.new(s,0)

for i in 0..s-1
	p[i]=gets.chomp!.to_i
	if !(p[i]>p[i-1]) then p[i],p[i-1]= p[i-1],p[i] end
end
p[s-1] = p[s-1]/2

answer = 0

for j in 0..s-1
	answer += p[j]
end

puts answer