#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<long long> o;
  vector<long long> e;
  long long ans = 0;
  for (long long x, i = 0; i < n; i++) {
    cin >> x;
    if (x % 2 == 0) {
      ans += x;
    } else {
      o.push_back(x);
    }
  }
  sort(o.begin(), o.end(), greater<int>());
  int q = o.size();
  if (q % 2 != 0) {
    q--;
  }
  for (int i = 0; i < q; ++i) {
    ans += o[i];
  }
  cout << ans << '\n';
}
