#include <bits/stdc++.h>
using namespace std;
template <typename T, typename U>
inline void amin(T &x, U y) {
  if (y < x) x = y;
}
template <typename T, typename U>
inline void amax(T &x, U y) {
  if (x < y) x = y;
}
int main() {
  long long sum = 0;
  long long min_odd = 0x3f3f3f3f;
  int(n);
  scanf("%d", &n);
  for (int(i) = 0; (i) < (int)(n); ++(i)) {
    int(x);
    scanf("%d", &x);
    sum += x;
    if (x % 2) amin(min_odd, x);
  }
  if (sum % 2)
    if (min_odd != 0x3f3f3f3f)
      sum -= min_odd;
    else
      sum = 0;
  cout << sum << endl;
}
