#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  long long sum = 0;
  vector<long long> a;
  for (long long i = 0, x; i < n; i++) {
    cin >> x;
    sum += x;
    if (x & 1) a.push_back(x);
  }
  sort(a.begin(), a.end());
  if (sum & 1)
    cout << sum << "\n";
  else {
    if (a.size())
      cout << sum - a[0] << "\n";
    else
      cout << "0\n";
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
