#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, tot = 0, tmp, x = 0;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> tmp;
    tot += tmp;
    if (tmp & 1) {
      if (!x) {
        x = tmp;
      } else {
        x = min(x, tmp);
      }
    }
  }
  if (tot & 1) {
    tot -= x;
  }
  cout << tot;
}
