#include <bits/stdc++.h>
using namespace std;
bool maxl(long long a, long long b) { return a > b; }
bool minl(long long a, long long b) { return a < b; }
bool cmp(int a, int b) { return a > b; }
inline int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 1) + (x << 3) + (ch ^ 48);
    ch = getchar();
  }
  return x * f;
}
int main() {
  int a[105], ji = 0, ou = 0, i, j, n, ans = 0;
  n = read();
  for (i = 0; i < n; i++) {
    a[i] = read();
    if (a[i] % 2 == 0) {
      ou++;
    } else {
      ji++;
    }
    ans += a[i];
  }
  sort(a, a + n);
  if (ans % 2 == 1) {
    cout << ans << endl;
  } else {
    if (ji >= 1) {
      for (i = 0; i < n; i++)
        if (a[i] % 2 == 1) {
          ans -= a[i];
          break;
        }
      cout << ans << endl;
    } else {
      cout << 0 << endl;
    }
  }
}
