#include <bits/stdc++.h>
using namespace std;
int n, g[100], res, s;
int main() {
  cin >> n;
  for (int(i) = 0; i < int(n); ++i) {
    cin >> g[i];
    s += g[i];
  }
  if (s & 1) res = s;
  for (int(i) = 0; i < int(n); ++i)
    if ((s - g[i]) % 2 == 1) res = max(res, s - g[i]);
  cout << res << endl;
}
