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