N = gets.to_i

item_prices = gets.chomp.split.map(&:to_i)

expensive_item = item_prices.max
half_price_expensive_item = expensive_item/2

item_prices.delete(expensive_item)
item_prices.push(half_price_expensive_item)

puts item_prices.inject(&:+)