#include <cstdio>
#include <algorithm>
static const int N = 100;
int n, ans;
int a[N];
int main() {
freopen("input.txt", "rt", stdin);
freopen("output.txt", "wt", stdout);
scanf("%d", &n);
for (int i = 0; i < n; i++)
scanf("%d", &a[i]);
std::sort(a, a + n);
for (int i = 0; i <= n / 2; i++)
ans += 1 + a[i] / 2;
printf("%d", ans);
return 0;
}
I2luY2x1ZGUgPGNzdGRpbz4KI2luY2x1ZGUgPGFsZ29yaXRobT4KCnN0YXRpYyBjb25zdCBpbnQgTiA9IDEwMDsKCmludCBuLCBhbnM7CmludCBhW05dOwoKaW50IG1haW4oKSB7CiAgICBmcmVvcGVuKCJpbnB1dC50eHQiLCAicnQiLCBzdGRpbik7CiAgICBmcmVvcGVuKCJvdXRwdXQudHh0IiwgInd0Iiwgc3Rkb3V0KTsKCiAgICBzY2FuZigiJWQiLCAmbik7CgogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspCiAgICAgICAgc2NhbmYoIiVkIiwgJmFbaV0pOwoKICAgIHN0ZDo6c29ydChhLCBhICsgbik7CgogICAgZm9yIChpbnQgaSA9IDA7IGkgPD0gbiAvIDI7IGkrKykKICAgICAgICBhbnMgKz0gMSArIGFbaV0gLyAyOwoKICAgIHByaW50ZigiJWQiLCBhbnMpOwoKICAgIHJldHVybiAwOwp9Cg==