#include <bits/stdc++.h>
using namespace std;
const long N = 100001;
int main() {
  int n;
  cin >> n;
  long long minj = 0x3f3f3f3f;
  int num = 0;
  long long sum = 0;
  int a[N];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
    if (a[i] % 2) {
      num++;
      if (a[i] < minj) minj = a[i];
    }
  }
  if (sum % 2) sum -= minj;
  cout << sum;
  return 0;
}
