#include <bits/stdc++.h>
using namespace std;
int n, a[100009];
bool comp(int a, int b) { return a > b; }
long long s;
int ultim_imp;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n, comp);
  for (int i = 0; i < n; i++) {
    if (a[i] % 2 == 0) s += a[i];
    if (a[i] % 2 == 1) {
      s += a[i];
      ultim_imp = a[i];
    }
  }
  if (s % 2 == 0)
    cout << s;
  else
    cout << s - ultim_imp;
}
