#include <bits/stdc++.h>
using namespace std;
long long a[200000 + 5], b[200000 + 5], vis[200000 + 5];
int main() {
  long long i, j, k;
  long long n, m;
  long long o = 0, minx = 10005, s = 0;
  scanf("%I64d", &n);
  for (i = 0; i < n; i++) {
    scanf("%I64d", &m);
    if (m % 2 == 0)
      s += m;
    else {
      minx = min(minx, m);
      s += m;
      o++;
    }
  }
  if (minx == 10005) {
    cout << 0 << endl;
    return 0;
  }
  if (o % 2)
    cout << s << endl;
  else
    cout << s - minx << endl;
  return 0;
}
