import java.util.*

val sc=Scanner(System.`in`)
fun main(args: Array<String>) {
    val num = sc.nextInt()
    val h = mutableListOf<Int>()
    for (i in 0 until num) {
        h.add(sc.nextInt())
    }
    println(h.sum() - h.max()!!/2)
}




