#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> v;
  int n, t, sum = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> t;
    sum += t;
    v.push_back(t);
  }
  sort(v.begin(), v.end());
  if (sum % 2)
    cout << sum;
  else {
    int mn = 1e9;
    for (int i = 0; i < v.size(); i++)
      if (v[i] % 2)
        if (v[i] < mn) mn = v[i];
    if (mn != 1e9)
      cout << sum - mn;
    else
      cout << 0;
  }
  return 0;
}
