#include <bits/stdc++.h>
int main() {
  int n, i, a, count = 0;
  scanf("%d", &n);
  long long int min = 1000000002;
  long long int sum = 0, sum1 = 0;
  for (i = 0; i < n; i++) {
    scanf("%d", &a);
    if (a % 2 == 0)
      sum += a;
    else {
      count++;
      sum1 += a;
      if (a < min) min = a;
    }
  }
  if (count % 2 == 0)
    printf("%lld", sum + sum1);
  else
    printf("%lld", sum + sum1 - min);
}
