#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, i, mn, neg = 0;
  long long int s1 = 0, s2 = 0, x;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a;
    if (a % 2 == 0) {
      s1 = s1 + a;
    } else {
      s2 = s2 + a;
      neg++;
      if (neg == 1) {
        mn = a;
      } else if (mn > a) {
        mn = a;
      }
    }
  }
  if (neg % 2 == 0) {
    x = s1 + s2;
    cout << x;
  } else {
    x = s1 + (s2 - mn);
    cout << x;
  }
  return 0;
}
