#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long s = 0, mn = LONG_LONG_MAX;
  for (long long i = 0; i < n; i++) {
    long long a;
    cin >> a;
    s += a;
    if (a % 2 == 1) mn = min(mn, a);
  }
  if (s % 2 == 0)
    cout << s;
  else
    cout << s - mn;
  return 0;
}
