fun main(args: Array<String>) {
  val N = readLine()!!.toInt()
  val p = (1..N).map{readLine()!!.toInt()}
  val max = p.max()
  val divmax = max!!/2
  val psum = p.sum()
  val result = psum - max + divmax
  println(result)
}