#include <bits/stdc++.h>
using namespace std;
template <typename T>
T sqr(T x) {
  return x * x;
}
template <typename T>
T gcd(T a, T b) {
  return b ? gcd(b, a % b) : a;
}
const int P1 = (int)1e9 + 7;
const int P2 = (int)1e9 + 9;
const int MAXN = (int)1e5 + 10;
int n;
vector<int> s;
long long ans;
int main() {
  ios_base ::sync_with_stdio(false);
  cin >> n;
  while (n--) {
    int x;
    cin >> x;
    if (x % 2 == 0)
      ans += x;
    else
      s.push_back(x);
  }
  sort(s.begin(), s.end());
  if (s.size() % 2 == 0) {
    for (int j = 0; j < s.size(); j++) ans += s[j];
  } else
    for (int j = 1; j < s.size(); j++) ans += s[j];
  cout << ans;
}
