#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, summ = 0;
  cin >> n;
  int* arr = new int[n];
  int smallest_odd = -1;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    summ += arr[i];
    if (arr[i] % 2 && (smallest_odd == -1 || arr[i] < smallest_odd)) {
      smallest_odd = arr[i];
    }
  }
  if (smallest_odd == -1) {
    cout << 0 << endl;
  } else if (summ > 0 && summ % 2 == 0) {
    cout << summ - smallest_odd << endl;
  } else {
    cout << summ << endl;
  }
  return 0;
}
