fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val amount = IntArray(n) { readLine()!!.toInt() }
        .sortedDescending()
        .mapIndexed { i, p -> if (i == 0) p shr 1 else p }
        .sum()
    println(amount)
}
