fun main(args: Array){ readLine() val ss = readLine()!!.split(" ").map { it.toInt() }.sorted() val max = ss.last() val sum = ss.slice(0..ss.size-2).map { it/2 }.sum() println(sum + max) }