#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int senar_petit = 1e9 + 1;
  long long suma = 0;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    suma += x;
    if (x % 2 and x < senar_petit) senar_petit = x;
  }
  if (suma % 2)
    cout << suma - senar_petit << endl;
  else
    cout << suma << endl;
}
