#include <bits/stdc++.h>
using namespace std;
long long n, a[10000000], tt, ans;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    a[i] *= -1;
  }
  sort(a, a + n);
  for (int i = 0; i < n; i++) {
    if (a[i] % 2 == 0) {
      ans += a[i];
    } else if (!tt) {
      tt = a[i];
    } else {
      ans = ans + a[i] + tt;
      tt = 0;
    }
  }
  cout << -ans;
  return 0;
}
