#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  long long val, sum = 0, minOdd = 1000000001;
  for (int i = 0; i < n; i++) {
    scanf("%lld", &val);
    if (val & 1) minOdd = min(minOdd, val);
    sum += val;
  }
  printf("%lld\n", (sum & 1) ? sum - minOdd : sum);
  return 0;
}
