#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, a[100050], sum = 0, sumt = 0, i = 0, tmp, j;
  cin >> n;
  while (n--) {
    cin >> tmp;
    if (tmp % 2 == 1) {
      a[i] = tmp;
      i++;
    } else {
      sum += tmp;
    }
  }
  sort(a, a + i);
  if (i % 2 == 0)
    j = 0;
  else
    j = 1;
  for (; j < i; j++) {
    sumt += a[j];
  }
  cout << sum + sumt << endl;
  return 0;
}
