#include <bits/stdc++.h>
using namespace std;
int a[1000005];
int main() {
  long long n, s = 0, mini = 10000000000;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (mini > a[i] && a[i] % 2 == 1) mini = a[i];
    s = s + a[i];
  }
  if (s % 2 == 0)
    cout << s << endl;
  else
    cout << s - mini << endl;
}
