#include "bits/stdc++.h" using namespace std; #define fastcin {\ cin.tie(0);\ ios::sync_with_stdio(false);\ } #define rep(i, a, b) for(int i = a; i < b; i++) #define print(x) cout << x << "\n" #define VSORT(v) sort(v.begin(), v.end()); typedef vector vi; int main() { fastcin; int n; cin >> n; vi x; rep(i, 0, n) { int in; cin >> in; x.push_back(in); } VSORT(x); rep(i, 0, n-1) { x[n-1] += x[i]/2; } print(x[n-1]); return 0; }