#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s = 0, mn = 101, a;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    if ((a & 1) && a < mn) {
      mn = a;
    }
    s += a;
  }
  if ((s & 1) == 0 && mn != 101) s -= mn;
  cout << s * (s & 1);
  return 0;
}
