#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> odd;
  long long minodd = INT_MAX;
  long long sum = 0;
  while (n--) {
    long long t;
    cin >> t;
    sum += t;
    if (t % 2 == 1) {
      minodd = min(minodd, t);
    }
  }
  if (sum % 2 == 1) {
    sum -= minodd;
  }
  cout << sum << endl;
  return 0;
}
