#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, a, n, sum = 0, hand = 0;
  vector<long long int> v;
  cin >> n;
  v.clear();
  for (i = 0; i < n; i++) {
    cin >> a;
    if (a % 2 != 0) hand++;
    v.push_back(a);
    sum += a;
  }
  long long int value = 1e13;
  if (hand % 2 != 0) {
    for (i = 0; i < v.size(); i++) {
      if (v[i] & 1) value = min(v[i], value);
    }
    sum -= value;
  }
  cout << sum << endl;
  v.clear();
}
