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