s=require("fs").readFileSync("/dev/stdin","utf8");
a = []
for (i = 0; i < s.split('\n')[0]; i++) {
	a.push(s.split('\n')[i + 1])
}
m = Math.max(...a)
a.forEach((n, i) => m == n && (a[i] = m / 2, m = 0))
b = 0;
a.forEach(n => b += n | 0);
console.log(b);
