#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, a;
  cin >> n;
  long long A[n];
  for (long long i = 0; i < n; i++) {
    cin >> a;
    A[i] = a;
  }
  long long sum = 0, odd = 0, small = 1000000009;
  for (long long i = 0; i < n; i++) {
    if (A[i] % 2 != 0) {
      odd++;
      if (A[i] < small) small = A[i];
    }
    sum = sum + A[i];
  }
  if (odd % 2 != 0) sum = sum - small;
  cout << sum;
  return 0;
}
