#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long arr[n];
  long long oddmin = INT_MAX;
  long long sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    sum = sum + arr[i];
    if (arr[i] % 2 != 0) {
      if (arr[i] < oddmin) {
        oddmin = arr[i];
      } else {
        continue;
      }
    }
  }
  if (sum % 2 == 0) {
    cout << sum;
  } else if (sum % 2 != 0) {
    sum = sum - oddmin;
    cout << sum;
  }
  cout << endl;
  return 0;
}
