#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, sum = 0, a = 101;
  cin >> n;
  while (n--) {
    cin >> m;
    sum += m;
    if (m & 1 && m < a) a = m;
  }
  if (sum & 1)
    cout << sum << endl;
  else {
    if (a == 101)
      cout << 0 << endl;
    else
      cout << sum - a << endl;
  }
  return 0;
}
