#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long sum = 0;
  vector<int> a(n);
  for (int &i : a) {
    cin >> i;
    sum += i;
  }
  if (sum % 2 == 1) {
    int minOdd = 1e9 + 5;
    for (int i = 0; i < n; i++) {
      if (a[i] % 2 == 1 && a[i] < minOdd) {
        minOdd = a[i];
      }
    }
    sum -= minOdd;
  }
  cout << sum << endl;
}
