#include <bits/stdc++.h>
const int INF = std::numeric_limits<int32_t>::max();
int main() {
  int n, a, s = 0;
  int min_odd = INF;
  std::cin >> n;
  for (int i = 1; i <= n; ++i) {
    std::cin >> a;
    s += a;
    if (a % 2 == 1) min_odd = std::min(min_odd, a);
  }
  if (s % 2 == 1) {
    std::cout << s << '\n';
    return 0;
  }
  if (s % 2 == 0) {
    if (min_odd == INF)
      std::cout << 0 << '\n';
    else
      std::cout << s - min_odd << '\n';
  }
  return 0;
}
