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