#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int S = 0, x;
  int m = 10000;
  for (int i = 0; i < n; ++i) {
    cin >> x;
    S += x;
    if (x & 1) m = min(x, m);
  }
  if (m == 10000)
    S = 0;
  else if (!(S & 1))
    S -= m;
  cout << S;
  return 0;
}
