#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, sum = 0, mini = 1000000001;
  int flag = 1;
  cin >> n;
  vector<long long int> seq(n);
  for (int i = 0; i < n; i++) {
    cin >> seq[i];
    if (seq[i] < mini && (seq[i] & 1) != 0) mini = seq[i];
    sum += seq[i];
  }
  if (((sum & 1) == 0) && sum > 0)
    cout << sum << endl;
  else if (((sum & 1) != 0) && sum > 0) {
    sum -= mini;
    cout << sum << endl;
  } else
    cout << 0 << endl;
}
