#include<bits/stdc++.h>
#define pi acos(-1)
#define all(x) (x).begin(),(x).end()
#define fill(x,y) memset(x, y, sizeof(x))
#define trace(x) cout << #x << " = " << x << endl
#define bug cout << "Bug check" << endl
#define endl '\n'
using namespace std;
int main(){
//freopen("in.txt","r", stdin);
//freopen("out.txt","w", stdout);
//ios::sync_with_stdio(0);
//cin.tie(0);
int n; cin >> n;
vector <int> v(n);
for(int&x : v) cin >> x;
sort(all(v));
n = n/2 + 1;
int s = 0;
for(int i=0;i<n;i++){
s+=(v[i]/2)+1;
}
cout << s << endl;
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KCiNkZWZpbmUgICAgcGkgICAgICAgICAgYWNvcygtMSkgCiNkZWZpbmUgICAgYWxsKHgpICAgICAgKHgpLmJlZ2luKCksKHgpLmVuZCgpCiNkZWZpbmUgICAgZmlsbCh4LHkpICAgbWVtc2V0KHgsIHksIHNpemVvZih4KSkKI2RlZmluZSAgICB0cmFjZSh4KSAgICBjb3V0IDw8ICN4IDw8ICIgPSAiIDw8IHggPDwgZW5kbAojZGVmaW5lICAgIGJ1ZyAgICAgICAgIGNvdXQgPDwgIkJ1ZyBjaGVjayIgPDwgZW5kbAojZGVmaW5lICAgIGVuZGwgICAgICAgICdcbicKCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpewoJLy9mcmVvcGVuKCJpbi50eHQiLCJyIiwgc3RkaW4pOwoJLy9mcmVvcGVuKCJvdXQudHh0IiwidyIsIHN0ZG91dCk7CiAKCS8vaW9zOjpzeW5jX3dpdGhfc3RkaW8oMCk7CgkvL2Npbi50aWUoMCk7CgoJaW50IG47IGNpbiA+PiBuOwoKCXZlY3RvciA8aW50PiB2KG4pOwoKCWZvcihpbnQmeCA6IHYpIGNpbiA+PiB4OwoKCXNvcnQoYWxsKHYpKTsKCgluID0gbi8yICsgMTsKCglpbnQgcyA9IDA7Cglmb3IoaW50IGk9MDtpPG47aSsrKXsKCQlzKz0odltpXS8yKSsxOwoJfQoJY291dCA8PCBzIDw8IGVuZGw7CgkKCXJldHVybiAwOwp9