#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, num, i;
  bool flag;
  int s, Min;
  while (scanf("%d", &n) != EOF) {
    flag = false;
    s = 0;
    Min = 999999999;
    for (i = 1; i <= n; i++) {
      scanf("%d", &num);
      s += num;
      if (num % 2 == 1) {
        flag = true;
        if (num < Min) Min = num;
      }
    }
    if (s % 2 == 1)
      printf("%d\n", s);
    else {
      if (flag == false)
        printf("0\n");
      else
        printf("%d\n", s - Min);
    }
  }
  return 0;
}
