#include <bits/stdc++.h>
using namespace std;
bool cmp(int x, int y) { return x > y; }
int a[102];
int main() {
  int i, j, k = 0, l = 0, n, s = 0;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] % 2 == 0)
      k++;
    else
      l++;
  }
  if (l == 0) {
    cout << 0;
    return 0;
  }
  if (l % 2 == 0 && l > 0) l--;
  sort(a + 1, a + n + 1);
  int x = 1, y = 1;
  i = n;
  while (i >= 1) {
    if (a[i] % 2 == 0 && x <= k) {
      x++;
      s += a[i];
    } else {
      if (a[i] % 2 != 0 && y <= l) {
        y++;
        s += a[i];
      }
    }
    i--;
  }
  cout << s;
}
