#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  int odd = 0;
  long long sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] & 1) odd++;
  }
  sort(a, a + n);
  if (odd & 1) {
    for (int i = 0; i < n; i++) {
      if (a[i] & 1) {
        a[i] = 0;
        break;
      }
    }
  }
  for (int i = n - 1; i >= 0; i--) {
    sum += a[i];
  }
  cout << sum;
  return 0;
}
