#include using namespace std; int main() { int n; cin >> n; vector a(n); for (auto&& i : a) { cin >> i; } sort(a.rbegin(), a.rend()); for (int i = 1; i < a.size(); i++) { a[0] += a[i] / 2; } cout << a[0] << "\n"; return 0; }