#include <bits/stdc++.h>
int main() {
  char str[105];
  int i, n, a, sum = 0, x = 101, y = 0, z = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a);
    { sum = sum + a; }
    if (a % 2 != 0 && a < x) {
      x = a;
    }
  }
  if (sum % 2 != 0) {
    printf("%d\n", sum);
  } else if (sum % 2 == 0 && x < 101) {
    y = sum - x;
    printf("%d\n", y);
  } else
    printf("0\n");
  return 0;
}
