#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long sum = 0;
  vector<long long> odd;
  for (int i = 0; i < n; i++) {
    long long x;
    cin >> x;
    sum += x;
    if (x % 2 == 1) odd.push_back(x);
  }
  sort(odd.begin(), odd.end());
  int j = 0;
  if (sum % 2 == 0)
    cout << sum;
  else {
    while (sum % 2 == 1) sum -= odd[j];
    cout << sum;
  }
}
