#include #include #include #include using namespace std; template bool maxPointer(T& a, T b) { if (a < b) {a = b;return true;}return false;} template int maxReturn(T a, T b) {if (a > b) {return a;} else {return b;}} template bool minPointer(T& a, T b) {if (a < b) {a = b;return true;}return false;} int main(void){ int N,max=0,maxIndex=0,ans=0; cin >> N; int array[N]; for (int i = 0; i < N; i++) { cin >> array[i]; if (array[i] > max) { max = array[i]; maxIndex = i; } } for (int i = 0; i < N; i++) { if (maxIndex != i) { ans += array[i] / 2; } else { ans += array[i]; } } cout << ans << endl; }