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