import scala.io.StdIn.readLine

object Main extends App {
  val n = readLine.toInt
  val seq = Iterator.continually(readLine)
    .take(n)
    .map(_.toInt)
    .toArray
  val max = seq.max
  println(seq.sum - max/2)
}