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