num = gets.chomp!.to_i
arr = []
max = 0

num.times do|i| 
    arr[i] = gets.chomp!.to_i
    if arr[max] < arr[i]
        max = i
        arr[max] = arr[i]
    end
end
#puts "maxは#{max}だよ"
arr[max] = arr[max]/2
sum = 0
arr.each do|s|
    sum += s
end
puts sum

