#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  long long min = 1e9 + 55, sum = 0, counter = 0;
  cin >> n;
  while (n--) {
    int a;
    cin >> a;
    sum += a;
    if (a % 2 == 1 && a < min) {
      min = a;
    }
    if (a % 2 == 1) {
      counter++;
    }
  }
  if (counter % 2 == 1) {
    cout << sum - min << endl;
  } else {
    cout << sum << endl;
  }
  return 0;
}
