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