#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, i, j = 0, sum = 0;
  cin >> n;
  int e[n], o[n], a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    sum = sum + a[i];
    if (a[i] % 2 != 0) {
      o[j] = a[i];
      j++;
    }
  }
  if (sum % 2 == 0) {
    cout << sum;
  } else {
    sort(o, o + j);
    sum = sum - o[0];
    cout << sum;
  }
}
