#include "bits/stdc++.h" using namespace std; int main() { int n,i,x[10001]; cin>>n; memset(x,10001,sizeof(x)); for(i=n;i--;)cin>>x[i]; sort(x,x+n,greater()); for(i=n-1;i>=1;i--)x[0]+=x[i]/2; cout<