'use strict';

function Main(input) {
  const p = input.split("\n").slice(1).map(x => Number(x))
  const max = Math.max.apply(null, p)
  const ans = p.reduce((x, y) => x + y) - max / 2
  console.log(ans)
};

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
