#!/bin/bash
retuInt=0
max(){
	local re;
	if (( $1>$2 )); then
		re=$1
	else
		re=$2
	fi
	retuInt=$re
	}

read -p "" n
sum=0
max=0
input=0
i=0
until (( $i==$n ))
do
	i=$(($i+1))
	read -p "" input
	max $max $input
	max=$retuInt
	sum=$((sum+input))
done
echo $(( $sum-$max/2 ))
