#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, i, sum = 0;
  vector<int> c;
  cin >> n;
  int a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] % 2 == 0)
      sum += a[i];
    else
      c.push_back(a[i]);
  }
  sort(c.begin(), c.end(), greater<int>());
  if (c.size() % 2 == 0) {
    for (i = 0; i < c.size(); i++) {
      sum += c[i];
    }
  } else {
    for (i = 0; i < c.size() - 1; i++) {
      sum += c[i];
    }
  }
  cout << sum;
}
