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