#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long amount = 0;
  cin >> amount;
  vector<unsigned long long> x(amount);
  unsigned long long sum = 0;
  unsigned long long temp = 0;
  unsigned long long counter = 0;
  for (auto& i : x) {
    cin >> i;
    sum += i;
  }
  temp = sum;
  if ((temp % 2) == 0) {
    cout << temp;
    return 0;
  }
  sort(x.begin(), x.end());
  while ((temp % 2) != 0) {
    temp = sum - x[counter];
    counter++;
  }
  cout << temp;
  return 0;
}
