#include <bits/stdc++.h>
int main() {
  long long int n, val, less_odd = 9999999999, sum = 0;
  scanf("%lld", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%lld", &val);
    sum += val;
    if (val & 1 && less_odd > val) less_odd = val;
  }
  if (sum & 1) {
    printf("%lld", sum - less_odd);
  } else {
    printf("%lld", sum);
  }
  return 0;
}
