#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long sum = 0LL;
  int cntodd = 0;
  int m = numeric_limits<int>::max();
  while (n--) {
    int d;
    cin >> d;
    sum += d;
    if (d % 2) {
      if (d < m) m = d;
      ++cntodd;
    }
  }
  if (cntodd % 2) sum -= m;
  cout << sum;
  return 0;
}
