#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, p, sum = 0, m = 10000000000;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> p;
    sum += p;
    if (p % 2 != 0 && p < m) {
      m = p;
    }
  }
  if (sum % 2 == 0) {
    cout << sum << endl;
  } else {
    cout << sum - m << endl;
  }
  return 0;
}
