#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int c, e = 0;
  long long int s = 0, a;
  for (long long int i = 0; i < n; i++) {
    cin >> a;
    s += a;
    if (a % 2 != 0) {
      e++;
      if (e == 1)
        c = a;
      else if (e > 1)
        c = min(c, a);
    }
  }
  if (e % 2 != 0) s -= c;
  cout << s;
}
