#define _USE_MATH_DEFINES #define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; //#include int main() { vectora, b; int n; cin >> n; for (int i = 0; i < n; i++) { int x; cin >> x; b.push_back(x); } sort(a.begin(), a.end()); sort(b.begin(), b.end()); long long int ans = 0; for (int i = 0; i < n - 1; i++)ans += b[i] / 2; ans += b[n - 1]; cout << ans<