#include <bits/stdc++.h>
using namespace std;
const long long N = 1e6 + 5;
long long arr[N], A[N], ARR[N];
bool visited[N] = {};
long long cnt[N] = {};
bool f;
int main() {
  long long n, sum = 0;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
    sum += arr[i];
  }
  if (!(sum & 1))
    cout << sum;
  else {
    sort(arr, arr + n);
    for (int i = 0; i < n; ++i) {
      if ((arr[i] & 1)) {
        sum -= arr[i];
        cout << sum;
        return 0;
      }
    }
  }
  return 0;
}
