#include <bits/stdc++.h>
using namespace std;
long long n, a, b[100001], c, d, e;
int main() {
  cin >> n;
  d = 1000000000;
  for (a = 1; a <= n; a++) {
    cin >> b[a];
    c += b[a];
    if (b[a] % 2 == 1 && b[a] < d) d = b[a];
  }
  if (c % 2 == 1) c -= d;
  cout << c;
}
