#include <bits/stdc++.h>
using namespace std;
void aya() {
  ios::sync_with_stdio(0);
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
}
vector<long long> v;
bool arr[608] = {0};
int main() {
  aya();
  int n;
  cin >> n;
  long long a[n], sum = 0, sum1 = 999999999;
  for (long long i = 0; i < int(n); i++) {
    cin >> a[i];
  }
  int cnt = 0;
  for (long long i = 0; i < int(n); i++) {
    if (a[i] % 2 != 0) {
      sum += a[i];
      sum1 = min(sum1, a[i]);
      cnt++;
    } else
      sum += a[i];
  }
  (cnt % 2 != 0) ? cout << sum - sum1 : cout << sum;
}
