#include <bits/stdc++.h>
using namespace std;
int n, a[1000006];
int main() {
  scanf("%d", &n);
  int sum = 0;
  int impar = 1000006, par = 1000006;
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    sum += a[i];
    if (a[i] % 2 == 1) {
      impar = min(impar, a[i]);
    } else {
      par = min(par, a[i]);
    }
  }
  if (sum % 2 == 0 && impar != 1000006) {
    sum -= impar;
  }
  if (sum % 2 == 0) {
    sum = 0;
  }
  cout << sum << endl;
  return 0;
}
