#include <bits/stdc++.h>
using namespace std;
using llint = long long;
const int MAXN = 100100;
llint niz[MAXN];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int n, i;
  llint tmp = 0, sum = 0;
  cin >> n;
  for (i = 0; i < n; ++i) cin >> niz[i];
  sort(niz, niz + n, greater<int>());
  for (i = 0; i < n; ++i) {
    if (niz[i] & 1) {
      if (tmp) {
        sum += tmp + niz[i];
        tmp = 0;
      } else
        tmp = niz[i];
    } else
      sum += niz[i];
  }
  cout << sum << endl;
}
