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