#include "bits/stdc++.h" using namespace std; int main(){int n,i,x[100001];cin>>n;memset(x,100001,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<