fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val prices = (1..n).map { readLine()!!.toInt() }
    val max = prices.max()
    val ret = prices.toMutableList()
    val maxIdx = prices.indexOfFirst { it == max }
    ret[maxIdx] /= 2
    println(ret.sum())
}