numOfItem = gets.to_i
arrayOfPrice = []
for times in 1..numOfItem do
  arrayOfPrice << gets.to_i
end

maxPrice = arrayOfPrice.max
numOfMaxPrice = arrayOfPrice.count(maxPrice)
arrayOfPrice.delete(maxPrice)

if numOfMaxPrice > 1 then
  for times in 1..numOfMaxPrice-1 do
    arrayOfPrice << maxPrice
  end
end

arrayOfPrice << maxPrice/2

puts arrayOfPrice.inject(:+)