#include <bits/stdc++.h>
int main() {
  int n, sum = 0, minodd = 101, i;
  scanf("%d", &n);
  for (; n > 0; --n) {
    scanf("%d", &i);
    if (minodd > i && i % 2) {
      minodd = i;
    }
    sum += i;
  }
  if (minodd == 101)
    printf("0");
  else if (sum % 2)
    printf("%d", sum);
  else
    printf("%d", sum - minodd);
  return 0;
}
