#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, v[100000], m = 0, e;
  long long s = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> e;
    if (e & 1)
      v[m++] = e;
    else
      s += e;
  }
  sort(v, v + m);
  for (int i = (m & 1); i < m; i++) s += v[i];
  cout << s;
  return 0;
}
