#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> even{};
  vector<int> odd{};
  long long int n, sum = 0;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
    if (a[i] % 2 == 0) {
      even.push_back(a[i]);
    } else {
      odd.push_back(a[i]);
    }
  }
  auto mini = min_element(odd.begin(), odd.end());
  if (odd.size() % 2 == 0) {
    cout << sum << endl;
  } else {
    cout << sum - *mini << endl;
  }
  return 0;
}
