#include <bits/stdc++.h>
using namespace std;
bool cmp(long long a, long long b) { return a > b; }
long long expo(long long a, long long b, long long m) {
  if (b == 0) return 1;
  if (b == 1) return a;
  long long val = (expo(a, b / 2, m) * expo(a, b / 2, m)) % m;
  if (b & 1)
    return (val * a) % m;
  else
    return val;
}
long long mmi(long long a, long long m) { return expo(a, m - 2, m); }
long long a[200001], b[200001];
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  vector<long long> v1, v2;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] & 1)
      v1.push_back(a[i]);
    else
      v2.push_back(a[i]);
  }
  sort(v1.begin(), v1.end(), cmp);
  sort(v2.begin(), v2.end(), cmp);
  long long ans = 0;
  if (v1.size() & 1) {
    for (long long i = 0; i < v1.size() - 1; i++) ans += v1[i];
  } else {
    for (auto it : v1) ans += it;
  }
  for (auto it : v2) ans += it;
  cout << ans << "\n";
  return 0;
}
