#include <bits/stdc++.h>
using namespace std;
int n, a, b, m, x;
int main() {
  scanf("%d", &n);
  a = 0;
  b = 0;
  x = 1000;
  if (n == 1) {
    scanf("%d", &m);
    if (m & 1)
      printf("%d\n", m);
    else
      printf("0\n");
  } else {
    for (int i = 0; i < n; i++) {
      scanf("%d", &m);
      if (m & 1) {
        a += m;
        if (m < x) x = m;
      } else {
        b += m;
      }
    }
    if (a == 0)
      printf("0\n");
    else if (a & 1)
      printf("%d\n", a + b);
    else
      printf("%d\n", a + b - x);
  }
  return 0;
}
