#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e9 + 1;
int main() {
  long long tmp, n, sum = 0, Min = inf;
  scanf("%lld", &n);
  for (__typeof(n) i = 0; i < (n); i++) {
    scanf("%lld", &tmp);
    if (tmp % 2) {
      Min = min(Min, tmp);
    }
    sum += tmp;
  }
  if (sum % 2) sum = sum - Min;
  printf("%lld\n", sum);
  return 0;
}
