#define _USE_MATH_DEFINES #include using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; vector a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } sort(a.begin(), a.end()); int ans = a.back(); for (int i = 0; i < n - 1; i++) { ans += a[i] / 2; } cout << ans << endl; return 0; }