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