import std.stdio, std.string, std.conv, std.range, std.array, std.algorithm; import std.uni, std.math, std.container, std.typecons, std.typetuple; import core.bitop, std.datetime; void main(){ int N; readVars(N); auto x = readln.split.to!(int[]); int ans = 0; foreach(i ; 0 .. N){ int tmp = x[i]; foreach(j ; 0 .. N){ if(j != i){ tmp += x[j] / 2; } } ans = max(ans, tmp); } writeln(ans); } void readVars(T...)(auto ref T args){ auto line = readln.split; foreach(ref arg ; args){ arg = line.front.to!(typeof(arg)); line.popFront; } if(!line.empty){ throw new Exception("args num < input num"); } }