#include #include #include #include using namespace std; int main() { int N; cin >> N; vectorx(N); for (int i = 0; i < N; i++) { cin >> x[i]; } sort(x.begin(), x.end()); reverse(x.begin(), x.end()); int ans = x[0]; for (int i = 1; i < N; i++) { ans += x[i] / 2; } cout << ans << endl; return 0; }