#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  long long t = 1;
  while (t--) {
    long long sum = 0, sub = 101, n, ele;
    cin >> n;
    for (long long i = 0; i < n; i++) {
      cin >> ele;
      sum += ele;
      if (ele % 2) sub = min(sub, ele);
    }
    if (sum % 2 == 0) {
      if (sub == 101)
        sum = 0;
      else
        sum -= sub;
    }
    cout << sum << '\n';
  }
}
