#include <bits/stdc++.h>
using namespace std;
inline void OPEN(const string &s) {
  freopen((s + ".in").c_str(), "r", stdin);
  freopen((s + ".out").c_str(), "w", stdout);
}
int n;
long long mn;
long long sum;
int main() {
  mn = -1;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    long long a;
    cin >> a;
    sum += a;
    if (mn == -1 || mn > a) {
      if (a % 2 == 1) mn = a;
    }
  }
  if (sum % 2 == 1) {
    if (mn != -1)
      sum -= mn;
    else
      sum = 0;
  }
  cout << sum << endl;
  return 0;
}
