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