#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
void fastio() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
void solve() {
  long long n;
  cin >> n;
  vector<long long> od;
  vector<long long> ev;
  long long y = 0, z = 0;
  for (long long i = 0; i < n; i++) {
    long long x;
    cin >> x;
    if (x & 1) {
      od.push_back(x);
      z += x;
    } else {
      ev.push_back(x);
      y += x;
    }
  }
  sort(od.begin(), od.end());
  if (od.size() == 0) {
    cout << 0 << endl;
  } else {
    if ((y + z) % 2 == 0) {
      cout << (y + z) - *(od.begin()) << endl;
    } else {
      cout << y + z << endl;
    }
  }
}
int32_t main() {
  fastio();
  long long t;
  t = 1;
  for (long long i = 1; i <= t; i++) {
    solve();
  }
  return 0;
}
