#include <bits/stdc++.h>
using namespace std;
long long n, x;
int main() {
  cin >> n;
  long long sum = 0, ji = 1e9 + 7;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (x & 1) ji = min(ji, x);
    sum += x;
  }
  if (sum & 1) {
    if (ji == 1e9 + 7)
      cout << 0 << endl;
    else
      cout << sum - ji << endl;
  } else
    cout << sum << endl;
  return 0;
}
