#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  int sum = 0;
  int smallest = 101;
  for (int i = 0; i < n; ++i) {
    sum += a[i];
    if (a[i] % 2 == 1) smallest = min(smallest, a[i]);
  }
  if (smallest == 101)
    cout << 0 << endl;
  else if (sum % 2 == 0)
    cout << sum - smallest << endl;
  else
    cout << sum << endl;
  return 0;
}
