#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  bool parity = true;
  int a[n];
  int sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] % 2) parity = false;
    sum += a[i];
  }
  if (sum % 2 == 1)
    cout << sum;
  else if (parity)
    cout << 0;
  else {
    sort(a, a + n);
    int i = 0;
    while (a[i] % 2 == 0 and i < n) {
      i++;
    }
    cout << sum - a[i];
  }
  return 0;
}
