using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); public static void Main() { Solve(); } static void Solve() { var n = NN; var a = NList; var max = 0; var maxid = 0; for (var i = 0; i < n; ++i) if (max < a[i]) { max = a[i]; maxid = i; } for (var i = 0; i < n; ++i) if (i != maxid) a[maxid] += a[i] / 2; WriteLine(a[maxid]); } }