#include <bits/stdc++.h>
using namespace std;
bool compare(int i, int j) { return i > j; }
int main() {
  vector<long long> values, odds;
  long long n, t, i, noOfOdd = 0, sum = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> t;
    values.push_back(t);
  }
  sort(values.begin(), values.end(), compare);
  for (i = 0; i < n; i++) {
    if (values[i] & 1) {
      odds.push_back(1);
      noOfOdd++;
    } else {
      odds.push_back(0);
    }
  }
  if (noOfOdd & 1) {
    noOfOdd--;
  }
  for (i = 0; i < n; i++) {
    if (odds[i] == 1) {
      if (noOfOdd > 0) {
        sum += values[i];
        noOfOdd--;
      }
    } else {
      sum += values[i];
    }
  }
  cout << sum << endl;
  return 0;
}
