#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int main() {
  int n;
  cin >> n;
  long long sum = 0;
  int mx = 1e9 + 7;
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    v.push_back(tmp);
    sum += tmp;
    if (tmp & 1) mx = min(mx, tmp);
  }
  if (sum & 1) sum -= mx;
  cout << sum << endl;
}
