#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, mne = 1000000000, temp, cnt = 0;
  long long total = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> temp;
    total += temp;
    if (temp % 2 != 0) {
      cnt++;
      mne = min(mne, temp);
    }
  }
  if (cnt % 2 != 0) total -= mne;
  cout << total << endl;
  return 0;
}
