#include <bits/stdc++.h>
using namespace std;
int N, a[100005], odd = -1;
long long ans = 0;
int main() {
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    scanf("%d", &a[i]);
  }
  sort(a, a + N);
  for (int i = N - 1; i >= 0; i--) {
    if (a[i] % 2 == 0) {
      ans += a[i];
    } else if (odd != -1) {
      ans += a[i] + odd;
      odd = -1;
    } else {
      odd = a[i];
    }
  }
  printf("%I64d\n", ans);
  return 0;
}
