#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m[105], i, j, sum = 0, k = 0, p = 0;
  cin >> n;
  for (i = 0; i < n; ++i) {
    cin >> m[i];
    if (m[i] % 2 != 0) k++;
    sum += m[i];
  }
  sort(m, m + n);
  if (k == 0) {
    cout << 0;
    return 0;
  }
  if (k % 2 == 0) {
    for (i = 0; i < n; i++)
      if (m[i] % 2 != 0) {
        p = m[i];
        break;
      }
  }
  cout << sum - p;
}
