import std.stdio;
import std.string;
import std.conv;
import std.typecons;
import std.algorithm;
import std.functional;
import std.bigint;
import std.numeric;
import std.array;
import std.math;
import std.range;
import std.container;
import std.ascii;
import std.format;

void main()
{
	auto input1 = readln.chomp.to!int;
	int maximumAmount = 0;
	int totalPaymentAmount;
	foreach(i; 0..input1){
		auto input2 = readln.chomp.to!int;
		if(maximumAmount <= input2){
			totalPaymentAmount += maximumAmount;
			maximumAmount = input2;
		}
		else
		{
			totalPaymentAmount += input2;
		}
	}

	writeln(totalPaymentAmount + (maximumAmount/2));
}