#include <bits/stdc++.h>
using namespace std;
int s[105];
int a[105];
int b[105];
int main() {
  int i, j, n;
  scanf("%d", &n);
  int t = 0, q = 0, a1 = 0, b1 = 0;
  for (i = 0; i < n; i++) {
    scanf("%d", &s[i]);
    if (s[i] % 2 != 0)
      a[t++] += s[i];
    else if (s[i] % 2 == 0) {
      b[q++] += s[i];
      b1 += s[i];
    }
  }
  if (t == 0) {
    printf("0\n");
    return 0;
  }
  sort(a, a + t);
  if (t % 2 == 0) {
    for (i = t - 1; i >= 1; i--) a1 += a[i];
  } else {
    for (i = t - 1; i >= 0; i--) a1 += a[i];
  }
  printf("%d\n", a1 + b1);
  return 0;
}
