#include <bits/stdc++.h>
using namespace std;
long long int a[900000], sum, mn = 999999999;
int n;
int main() {
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    scanf("%I64d", &a[i]);
    if (a[i] % 2) {
      if (a[i] < mn) mn = min(mn, a[i]);
    }
    sum += a[i];
  }
  if (sum % 2) sum -= mn;
  cout << sum;
}
