#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, a[105], TOTAL;
  while (cin >> n) {
    TOTAL = 0;
    for (i = 0; i < n; i++) {
      cin >> a[i];
      TOTAL = TOTAL + a[i];
    }
    if (TOTAL % 2 == 1)
      cout << TOTAL << endl;
    else {
      sort(a, a + n);
      i = 0;
      while (a[i] % 2 != 1 && i < n) {
        i++;
      }
      if (i == n)
        cout << 0 << endl;
      else
        cout << (TOTAL - a[i]) << endl;
    }
  }
  return 0;
}
