#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, a, i, sum = 0, k, l = 10000000000;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> a;
    sum += a;
    if (a % 2) l = min(l, a);
  }
  if (sum % 2 == 1) sum -= l;
  cout << sum << endl;
}
