#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, min_n = 1000000001, curr;
  long long sum = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> curr;
    sum += curr;
    if ((curr % 2 == 1) && (curr < min_n)) {
      min_n = curr;
    }
  }
  if (sum % 2 == 0) {
    cout << sum;
  } else {
    if (min_n < 1000000001) {
      cout << sum - min_n;
    } else {
      cout << 0;
    }
  }
  return 0;
}
