#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l = 1000, k = 1000, a, s = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a % 2 == 0) l = min(l, a);
    if (a % 2 == 1) k = min(k, a);
    s += a;
  }
  if (s % 2 == 0 && k != 1000) cout << s - k << endl;
  if (s % 2 == 0 && k == 1000) cout << 0 << endl;
  if (s % 2 == 1) cout << s << endl;
}
