#include <bits/stdc++.h>
void quit();
using namespace std;
const long double PI = acos(-1);
const long double EPS = 1e-10;
double __t;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  long long sum = 0;
  int odd = 2000000000;
  for (int i = 0; i < n; ++i) {
    int first;
    cin >> first;
    sum += first;
    if (first & 1) odd = min(odd, first);
  }
  if (sum & 1ll)
    cout << sum - odd;
  else
    cout << sum;
  quit();
}
void quit() { exit(0); }
