#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long q;
  q = 1;
  while (q--) {
    long long n, o = 0, e = 0, sum = 0;
    cin >> n;
    long long ar[n];
    for (long long i = 0; i < n; i++) cin >> ar[i];
    for (long long i = 0; i < n; i++) {
      if (ar[i] % 2)
        o++;
      else
        e++;
      sum += ar[i];
    }
    long long k = 0;
    if (o % 2) k = 1;
    sort(ar, ar + n);
    if (k == 1) {
      for (long long i = 0; i < n; i++) {
        if (ar[i] % 2) {
          sum -= ar[i];
          break;
        }
      }
    }
    cout << sum;
    cout << endl;
  }
  return 0;
}
